Hai, i just create simple login and sign up page using Firebase auth using email and password method. But why my user dont get notif if email already exist when they try register with same email ?
i use this code from Firecast to display error, but no error coming up if i sign up with same email.
btnreg.addEventListener('click', e => {
const email = txtemail.value;
const pass = txtpass.value;
const auth = firebase.auth();
//const promise = auth.createUserWithEmailAndPassword(email, pass);
const promise = auth.createUserWithEmailAndPassword(email, pass);
promise.catch(e => console.log(e.message));
});
thanks for your help