Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda