© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
41 replies
oli

Compose-Auth: Sign in with Google on iOS

🟠Swift/Kotlin
Hello all,
I've recently implemented Apple and Google sign in providers. The Apple sign in provider is working fine on iOS. And the Google sign in provider is working fine on Android.

The question is, can I make the Google sign in work on iOS? It keeps failing to the fallback. This is the code:

    val googleAuthState = supabaseClient.composeAuth.rememberSignInWithGoogle(
        onResult = { result ->
            when (result) {
                is NativeSignInResult.Success -> {
                    onOnboardingComplete()
                    // Navigation is handled by App.kt observer
                }
                is NativeSignInResult.Error -> {
                    scope.launch {
snackbarHostState.showSnackbar(result.message)
                    }
                }
                is NativeSignInResult.ClosedByUser -> {} // User aborted
                is NativeSignInResult.NetworkError -> {
                    scope.launch {
snackbarHostState.showSnackbar("Network error. Please check your connection.")
                    }
                }
            }
        },
        fallback = { isGoogleSignInAvailable = false } // this fallback is triggered when I attempt to sign in on iOS
    )
    val googleAuthState = supabaseClient.composeAuth.rememberSignInWithGoogle(
        onResult = { result ->
            when (result) {
                is NativeSignInResult.Success -> {
                    onOnboardingComplete()
                    // Navigation is handled by App.kt observer
                }
                is NativeSignInResult.Error -> {
                    scope.launch {
snackbarHostState.showSnackbar(result.message)
                    }
                }
                is NativeSignInResult.ClosedByUser -> {} // User aborted
                is NativeSignInResult.NetworkError -> {
                    scope.launch {
snackbarHostState.showSnackbar("Network error. Please check your connection.")
                    }
                }
            }
        },
        fallback = { isGoogleSignInAvailable = false } // this fallback is triggered when I attempt to sign in on iOS
    )


I tried follow the Supabase docs, but it doesn't really mention anything about compose multiplatform and iOS. In terms of Google's official resources, they do have some posts about implementing the Google sign in on iOS, but I don't know how to connect that to Supabase's Compose-Auth system.

Will be thankful for any help!
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Can't get google sign in to work on IOS
SupabaseSSupabase / help-and-questions
7mo ago
Expo + Google sign in + react native + iOS app
SupabaseSSupabase / help-and-questions
6mo ago
Google sign in with custom domain
SupabaseSSupabase / help-and-questions
3y ago
someone even managed to handle google sign in on react native ios ?
SupabaseSSupabase / help-and-questions
6mo ago