How to handle wrong password and invalid email exceptions in Firebase Authentication?

Viewed 1272

I am making an app which uses firebase to register user and sign in using email and password. I have successfully implemented the registration part but I have a slight hiccup implementing the sign in.

I want to find when and if the user enters wrong password or invalid email and handle each exception separately. I know there is a getException() method when I login using email and password but I cant exactly find how to use it.

I would appreciate it if you could help me handle these exceptions gracefully..

0 Answers
Related