auth
auth copied to clipboard
Kakao login using id_token is failed in Flutter
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?
Check out this issue https://github.com/supabase/auth/issues/1755
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 Thanks to the comments in that issue, I was able to fix it too.