How to save the Firebase Authentication credential?

Viewed 885

I want user to login only once in the system, any users who have already signed up or logged in into the system should directly navigate to the dashboard of the android app. How can i do that?

2 Answers

Firebase automatically persists the user credentials when they sign in, and tries to restore the user's sign-in session when the app restarts. You can read the user from FirebaseAuth.getInstance().getCurrentUser() when your first activity start, and use that value to determine where to navigate to.

Related