0
firebase.auth().createUserWithEmailAndPassword(email, password)
      .then((result) => {
        try {
            result.user.sendEmailVerification().then(function(){
            firebase.firestore().collection("Users").doc(result.user.uid).set({ name, email, imgUri });
            alert('Email Verification Have Been Send')
            firebase.auth().signOut();
          }).catch(function(error) {
            // An error happened.
          });
        } catch (e) {
          console.log("error1");
        }
      })
      .catch((error) => alert(error));

I want to create the user then send a Verification email without singing in how???

Phix
  • 9,364
  • 4
  • 35
  • 62
Osama Tab
  • 51
  • 7

0 Answers0