Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’13mo ago
Mahesh Babu Uppala

Supabase Flutter Mobile App Login Session Issue (iOS)

Hey everyone, we’re facing an issue with Supabase Auth auto-refresh on iOS apps and need some help.

πŸ”Ή Issue Details:
βœ… Access token auto-refresh works when the app is fully closed and reopened.
❌ Access token does NOT refresh when the app resumes from the background.
❌ iOS apps face session expiration issues more frequently than Android.

πŸ”Ή Expected Behavior:
The access token expires every 15 minutes.
It should auto-refresh in the background when expired.
The session should stay active, even when switching apps.
πŸ”Ή Possible Cause & Observations:
iOS suspends background execution, preventing the refresh token process from running.
Supabase Auth listener does not trigger when resuming from background.
Users are sometimes logged out unexpectedly after inactivity.
πŸ”Ή Looking for Solutions:
Has anyone implemented Supabase Auth session auto-refresh on app resume for iOS?
Any workarounds to ensure token refresh even when the app is in the background?
Would really appreciate any insights! πŸ™πŸ”₯

Thanks in advance! πŸš€
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

Supabase Flutter IOS Login
SupabaseSSupabase / help-and-questions
2mo ago
Supabase + Flutter + In App Subscriptions
SupabaseSSupabase / help-and-questions
3y ago
Issue with Playing .mp4 Videos in Flutter App IOS
SupabaseSSupabase / help-and-questions
14mo ago
2FA Login Issue – β€œAuth session missing!” on Supabase Login Page
SupabaseSSupabase / help-and-questions
8mo ago