How can I initialize a screen to check if a user is logged in using room database after closing an application?
So this is my logic. I will have an authenticate function in my loginViewModel which basically retrieves a user from the database and checks if it matches the input from a textField. I will have another function to log the user out from a different screen, it will cut off its connection with the database.