Reputation: 51
firebase.auth().createUserWithEmailAndPassword(email, password).then((user) => {
user.sendEmailVerification().then(()=>{console.log("Email Sent")}).catch((err)=>{console.log(err)});
}).catch((error) => {
var errorCode = error.code;
var errorMessage = error.message;
});
Getting error - user.sendEmailVerification()
is not function.
Can someone help how to send Verification Email in Firebase Authentication?
Upvotes: 2
Views: 2685
Reputation: 168
I faced the same issue and resolved now.You followed something that is from older versions.The latest library doesn't have the same code u using,please see the latest documentation: https://firebase.google.com/docs/auth/web/manage-users
Upvotes: 2