login and logout

good night I need your help to make an application that has a login and logout with tinydb.
I will appreciate your help

better to use firebase authentication. more efficient and reliable.

1 Like

create tag in tinydb “isLoggedIn” default value is false.
On login set this tag value to true & on screen1. intialize check
if isLoggedIn == true then
open another screen screen2 else
show login arrangement for login to app.
if successfully login add this tag “isLoggedIn” value to true and open another screen.