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???