I am working with java-script fire-base in my application.
I successfully createUserWithEmailAndPassword in the application. It also shows that the data is inside the Fire-base Console .
Here is a snippet.
firebase.auth().createUserWithEmailAndPassword(" abc@gmail.com ", "*******").catch(function(error) {
Then I went through firebase.auth().signInWithEmailAndPassword .
Using the above method, I cannot get any successful event or message for log . Even he does not throw any error .
Here is a snippet.
firebase.auth().signInWithEmailAndPassword(" abc@gmail.com ", "*****") .catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; if (errorCode === 'auth/wrong-password') { alert('Wrong password.'); } else { alert(errorMessage); } console.log(error); });
My question is: how to get the success event in this method signInWithEmailAndPassword ?
Any help would be greatly appreciated.
source share