How do you start from different screens when opening the application?

I want to make an app with login and registration. Of course after one login, user shouldn't login secondly. But when app is closed totally, it forgets that user loggined already, so opens screen with login, but I want it to open screen with main page instead of it. If user didn't loginned yet, he will be on login page anyways.

1 Like

Assuming, you are using tinyDB for user login and authentication, once user is authenticated you can save for that specific user that it is authenticated to be true. And whenever you are to authenticate a user second or subsequent time you will first check is it authenticated earlier or not, if it is already authenticated successfully then there is no need to verify it again and simply proceed to the welcome page.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.