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 🙏
Was this page helpful?