To handle all possible auth/
errors Firebase can return to a somehow invalid login I am in search for a full list of all auth/
errors.
I could find such a list for iOS using Swift but not for the Web API, neither in the old nor in the new documentation.
Does anybody know a resource where all auth/
errors of the web API are listed? Or is such a list not needed since my approach for error handling is not set up nicely?
sample snippet:
firebase.auth().createUserWithEmailAndPassword(account.mail, account.password).catch(function(error) {
// TODO: Notify user about error
var errorCode = error.code;
var errorMessage = error.message;
console.log(errorCode)
console.log(errorMessage)
if (errorCode === 'auth/email-already-in-use') {
console.log('Mail in use')
$state.go('register.mail_in_use')
}
});
The complete list of authentication answers can now also be found in the Firebase documentation, so I recommend checking there for the latest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With