auth icon indicating copy to clipboard operation
auth copied to clipboard

Kakao login using id_token is failed in Flutter

Open choim4389 opened this issue 1 year ago • 2 comments

Bug report

final token = await UserApi.instance.loginWithKakaoAccount();
final res = await _supabase.auth.signInWithIdToken(
    provider: OAuthProvider.kakao,
    idToken: token.idToken!,
  );

above code results AuthException(message: Unacceptable audience in id_token: [kakao_native_app_key], statusCode: 400)

When does this error occur and how can I fix it?

choim4389 avatar Aug 06 '24 14:08 choim4389

Check out this issue https://github.com/supabase/auth/issues/1755

MiryangJung avatar Sep 01 '24 09:09 MiryangJung

In my case I modified the supabase console information

Menu Autentication > Providers > Kakao

REST API Key -> Native App Key (from kakao Developers my Application)

smboy86 avatar Nov 28 '24 17:11 smboy86

@smboy86 Thanks to the comments in that issue, I was able to fix it too.

Mineru98 avatar May 04 '25 02:05 Mineru98