Skip to content

[kakao login] Issue when using Supabase Kakao login oauth using Flutter on IOS #1174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
merche-o opened this issue May 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@merche-o
Copy link

Steps to reproduce

I'm implementing Kakao login in my app using Supabase and Flutter. Here’s my implementation, which I followed based on the Supabase documentation:

await _client.auth.signInWithOAuth(
  OAuthProvider.kakao,
  redirectTo: redirectUrl,
  authScreenLaunchMode: LaunchMode.inAppWebView,
);

The redirectUrl is a deep link that should redirect back to my app.

Expected results

The Kakao login should run smoothly and automatically redirect users to the app’s home page after successful authentication.

Actual results

When using an in-app browser (which is required by Apple’s guidelines), I encounter a blank webview and the following error in my logs:

PlatformException(Error, Error while launching https://ldtimmwvdiqiuprrgset.supabase.co/auth/v1/authorize?provider=kakao&redirect_to=com.nectrlimited.scout%3A%2F%2Fkakaologin&flow_type=pkce&code_challenge=APN0TMO63GO3jY8a0YD0jCHkuvDd6fwn51WHaMeGFes&code_challenge_method=s256, null, null)

To proceed with login, you must manually dismiss the blank webpage using the Done button.

(FYI i don't have any issue when using external browser)

Code sample

kakao oauth
`  await _client.auth.signInWithOAuth(
        OAuthProvider.kakao,
        redirectTo: redirectUrl,
        authScreenLaunchMode: LaunchMode.inAppWebView,
      );
@merche-o merche-o added the bug Something isn't working label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant