Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

334
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda