How do I save user session using SharedPreferences in Cloud Firestore when I'm not using Firebase authentication?
问题 When a user registers in my Android app, their data is stored inside a collection, where the document ID is their email address which helps find a user. The password is stored inside the document as well. So when a user logins, their entered email is checked against a document ID matching that email, if it exists it will log in and display user control panel. Now after the login, I need to somehow create a user session, so that the user can never go back to the login screen until he logouts.