Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

list of all auth/ errors for firebase web API

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')
                }
            });
like image 380
albert Avatar asked Aug 25 '16 18:08

albert


1 Answers

The complete list of authentication answers can now also be found in the Firebase documentation, so I recommend checking there for the latest.

like image 105
Frank van Puffelen Avatar answered Sep 29 '22 10:09

Frank van Puffelen