© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago
Christophe

Session remains NotAuthenticated on iOS after OAuth login using supabase-kt

Hi everyone 👋

I'm using supabase-kt (Compose Multiplatform) in my KMP project with multiple auth providers (Google, Facebook, Apple, etc.).

On Android, everything works fine — after the provider login, my session status correctly changes to Authenticated.

However, on iOS, after completing the Facebook login flow, I get redirected back to my app via:

.onOpenURL(perform: { url in
print("✅ onOpenURL handled: (url)")
})


The redirect URL is correctly received (and printed), but my sessionStatus stays stuck at:

SessionStatus.NotAuthenticated


even though I can see in the Supabase logs that the authentication flow succeeded.

Do I need to call something like supabase.auth.exchangeCodeForSession(url) (or similar) manually inside onOpenURL?

Or is there another recommended way to handle the auth redirect on iOS with supabase-kt?

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

New supabase-kt
SupabaseSSupabase / help-and-questions
4y ago
Supabase Flutter Mobile App Login Session Issue (iOS)
SupabaseSSupabase / help-and-questions
13mo ago
Supabase forces page redirect after oAuth login?
SupabaseSSupabase / help-and-questions
4y ago
Supabase Flutter IOS Login
SupabaseSSupabase / help-and-questions
2mo ago