Understanding Automatic Login with Firebase Authentication

Asked 2 years ago, Updated 2 years ago, 94 views

I created a login function using the Android app.
I use userid and password to log in.

After that, after the second time, I want to automatically log in without going through the login screen and transition to the main page, but I can't find a way.

I tried to implement automatic login using firebase authentication, but it ended up logging in via email and password.
So, how do I implement automatic login with userid and password?

java firebase kotlin

2022-09-30 15:34

1 Answers

Before viewing the login form, use onAuthStateChanged to determine if you are already logged in.


2022-09-30 15:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.