Set created app to keep logged in of already signed up

I am creating an app.
It includes the user to create an user account either by logging in or signing up or continue as guest
I want to set it such that if an user has already created an account in a device is anot asked again to the three options(log,sign,guest)

Use the tinydb to store the login details, and recall these when app is opened again.