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.