© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
11 replies
orchid_glamour

onAuthStateChange when offline not returning INITIAL_SESSION event

I am using supbase in a react native app following all the directions as per the docs. It generally works very well, logs in, resumes sessions when the app reopens, etc. However - if a logged in user has closed the app and is inactive for a while, and then tries opens the app when offline, it seems that the app is not preserving their logged in state. When they go back online and open the app it restores their logged in state. Is there some way I can resolve this? I am exclusively using onAuthStateChange to handle the auth state.
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

onAuthStateChange SIGNED_IN event not firing after OAuth
SupabaseSSupabase / help-and-questions
4y ago
offline user session (not storage)
SupabaseSSupabase / help-and-questions
15mo ago
manually trigger onAuthStateChange USER_UPDATE event
SupabaseSSupabase / help-and-questions
3mo ago
getUser and Session returning null even when authenticated
SupabaseSSupabase / help-and-questions
13mo ago