© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
Greg

autologin best practice

just looking for some advice, im making a desktop app and when the pc restarts it does not save the last session so the user has to log in again, i want to make it log in automaticly, i have a couple of ideas, the first one was to store the username/password in the os specific keychain/creditional manager then when the program loads it will load those in and log in. the downside to this is obviously there password is then accesible by a bad actor. the other idea i had was to generate an authentication token that is stored when they first register and then use that to validate any server side functions i run i also planned on having this change every time they make a request. is there a better way to do this? or which one would be best practice?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Best practice upgrading Postgres
SupabaseSSupabase / help-and-questions
4mo ago
Supabase Storage best practice
SupabaseSSupabase / help-and-questions
3y ago
best practice on private columns
SupabaseSSupabase / help-and-questions
2w ago
Best Practice for dev database
SupabaseSSupabase / help-and-questions
6mo ago