Hi all
I am still new to firebase, fumbling along. I am stuck with an issue with SendEmailVerification call.
When I run the code I get
Uncaught (in promise) TypeError: Cannot read property 'sendEmailVerification' of null
var promise = auth.createUserWithEmailAndPassword(emailAddress, password);
firebase.auth().onAuthStateChanged(function(user) {
user.sendEmailVerification();
console.log("inside of sendEmailVerification");
window.location.replace("/ChkYourEmail.html");
});
Im not sure what I am doing wrong here. Can someone please point out?
Appreciate your responses.
thanks
Sreedar