Apology if this question was already answered but ...
# help
a
Apology if this question was already answered but I couldn't find it anywhere. I successfully let user signup. How can I log them in next time they come back without asking them to sign in again?
n
Hello @Alan! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
a
They dont have to sign-in again for web which by default persist the session to local storage and somehow refreshes the token, not sure of the logic and when it will really expire https://supabase.com/docs/reference/javascript/initializing
n
Alan (2022-03-27)
a
The JWT Expiry setting in your project can also be increased.
a
Thanks @User , I forgot to mention that it was for Flutter. I've made it worked using the shared_preferences to save persistSessionString onto user local device and automatically logged user in using recoverSession. Not sure if this is the best approach but will go with it for now until figure out a better way.
y
@Alan hi Alan, how long does it persist? My app is only persisting for 1-2hours. How do I make it last for 7 days using persist session string