Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

326
Views
how to verify user email in firebase react native(Expo)

In my application user authentication is done every thing is working fine but I want implement user email verification feature in my app I am done with user authentication and storing user details in Firestore

my signup method code :


     const onRegister = async (email, password, username) => {
    try {
      const authUser = await firebase
        .auth()
        .createUserWithEmailAndPassword(email, password);  
    db.collection("users").add({
        owner_uid: authUser.user.uid,
        displayname: username,
        email: authUser.user.email,
        photoURL: await getrandompicture(),
      });

      await firebase.auth().currentUser.updateProfile({
        displayName: username,
        photoURL: await getrandompicture(),
      });
    } catch (error) {
      Alert.alert(error.message);
    }
  };

my authnavigation :

const Authnavigation = () => {
  const [currentUser, setcurrentUser] = useState(null);
  const userHandler = (users) =>
    users ? setcurrentUser(users) : setcurrentUser(null);
  useEffect(
    () => firebase.auth().onAuthStateChanged((user) => userHandler(user)),
    []
  );
  return (
    <>
      {currentUser ? (
        <Singninstack userID={currentUser.uid} />
      ) : (
        <Signoutstack />
      )}
    </>
  );
};

export default Authnavigation;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can call sendEmailVerification right after creating the user.

await authUser.user.currentUser.sendEmailVerification()
  .then(() => {
    // Email verification sent!
    // ...
  });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!