Issue
I am building a kotlin app using FirebaseAuth and I want to add some custom rules to keep the user signed in for a time even if they are not using the app. All I could find in the docs related to this was for Web applications. https://firebase.google.com/docs/auth/web/auth-state-persistence
Is there anything like this in the docs for Android?
If not, is there a way I can get that functionality?
I was considering using SharedPreferences
to store authentication state but I get the feeling there is a better way.
Solution
So, I was not aware that firebase users stay signed in until logged out explicitly. Understanding this solved my problem as I didn't have to write code to handle keeping the user signed in.
Answered By - Dylon Jaynes
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.