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!
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.
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.
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!