Login for my app

How can I ensure that after the users of my app log in, their account remains open without having to log in again? Thank you for your advices.

Use tiny db to store that a user is logged in and the username so when the app starts check whether there is any user logged in or no, If yes then skip the log in screen and if no then open log in screen

1 Like

firebase authentication remains logged even after closing the app. for your purpose there is the “has logged in” block, which combined with an “if” block, can be used to know if a user is logged in, and react by performing an action.

1 Like

blocks (2)

2 Likes

@asimjib93 has explained it with blocks. Follow this procedure. Hit the solution button if this was helpful!

How do I do it with tinydb?

A search on the community will provide you the answer.

2 Likes

tinydb is not necessary. just use this.

2 Likes

Thanks, you have reason. I get it.

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