Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save the Firebase Authentication credential?

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?

like image 544
novmbr29 Avatar asked Oct 22 '25 04:10

novmbr29


1 Answers

Don't need to try it manually because Firebase stores automatically your login credentials(with your sign in Session) when you sign in with your Google account.

when your 1st activity starts you can check it in How Re-authenticate a user

FirebaseAuth.getInstance().getCurrentUser()

read firebase auth Persistence documentation

like image 106
Monu Rohilla Avatar answered Oct 23 '25 19:10

Monu Rohilla