1

Im using Firebase Email and Password Auth to login to my App I made a simple login form and register form as usual

My Problem is I dont know how to handle with exceptions... There is this Log where I can see if e.g. the Email is in a bad format.

But I want that if an error occurs i catch it and print it out, a specific test for normal exceptions like email wrong, password wrong etc

Also I ask my self, if there is a list of all these exceptions, because i cant find any.

1 Answer 1

3

You can find the list of possible errors produced by Firebase Auth APIs in the API documentation. They are all subclasses of FirebaseAuthException:

FirebaseAuthActionCodeException, FirebaseAuthEmailException, FirebaseAuthInvalidCredentialsException, FirebaseAuthInvalidUserException, FirebaseAuthMultiFactorException, FirebaseAuthRecentLoginRequiredException, FirebaseAuthUserCollisionException, FirebaseAuthWebException

See also:

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! i saw the post but i wanted a kotlin code, but i think i can work with that

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.