© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
2 replies
dinesh0414

electron auth session persistence

auth🟡javascript
I'm working on an electron app using nextjs and supabase auth, how do we set it up such that the user is always logged into the app when they open it? particularly, how do we ensure that the refresh token gets refreshed properly? I feel like I keep seeing it kicking me out randomly due to the refresh token getting invalidated, mainly when I reopen the app after the computer's been closed/asleep for a while. I'm storing the session tokens in electron encrypted safeStorage.
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

Auth session missing
SupabaseSSupabase / help-and-questions
11mo ago
Auth Session Missing!
SupabaseSSupabase / help-and-questions
13mo ago
Help for session/auth
SupabaseSSupabase / help-and-questions
6mo ago
JWT auth - session undefined
SupabaseSSupabase / help-and-questions
4y ago