© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago
Viv

Authentication persistence - how does it work?

🔵Flutterauth
I want users to remain logged in when they background and reopen my Flutter app.

Currently, I sign users in with:
await locator<SupabaseClient>()
          .auth
          .signInWithPassword(email: email, password: password);
await locator<SupabaseClient>()
          .auth
          .signInWithPassword(email: email, password: password);



However, when the app is backgrounded and reopened, the user is logged out.
Calling currentSession() returns null, and refreshing the session also returns null with the same behavior. I'm also on the pro plan

How is authentication persistence supposed to work in Supabase with Flutter?
What setup is required to ensure the session is restored correctly when the app resumes?
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

Authentication does not work in production
SupabaseSSupabase / help-and-questions
4y ago
how does supabase work
SupabaseSSupabase / help-and-questions
4y ago
Does server-side authentication work in tendom with client-side?
SupabaseSSupabase / help-and-questions
4y ago
Authentication persistence issues when upgrading Supabase Flutter from v1 to v2
SupabaseSSupabase / help-and-questions
2mo ago