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

224
Vistas
How to send a verification email during registration? Firebase, React Native

I have a registration form, the user puts his info then I submit it to a firestore collection. I want to send a verification email with the same button, how can I do that?

here's my signup button.

 onSignUp() {
    if (
      this.state.email != '' &&
      this.state.password != '' &&
      this.state.name != '' &&
      this.state.phonenumber != '' &&
      this.state.lastname != ''
    ) {
      const { name, lastname, phonenumber, email, password} = this.state;
      firebase
        .auth()
        .createUserWithEmailAndPassword(email, password)
        .then((result) => {
          firebase
            .firestore()
            .collection('Patients')
            .doc(firebase.auth().currentUser.uid)
            .set({
              name,
              lastname,
              phonenumber,
              email,
   
            });
          console.log(result);
        })
        .catch((error) => {
          alert('Sorry it seems you entered wrong email or/and password');
          console.log(error);
        });
    } else {
      alert('Please, make sure you filled all the fields with correct info!');
    }
  }

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

To send an email verification message call user.sendEmailVerification() after the account was created or signed in. So:

firebase
  .auth()
  .createUserWithEmailAndPassword(email, password)
  .then((result) => {
    result.user.sendEmailVerification();
    ...

Also see the RNFirebase documentation for that method.

about 4 years ago · Juan Pablo Isaza Denunciar

0

There are too many modules which can be used. I use nodemailer.

Official website

https://nodemailer.com/about/

yt video

https://www.youtube.com/watch?v=nF9g1825mwk

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