Apple authentication with Supabase in Flutter: Error 400: invalid_request #21297
-
I am trying to implement Apple authentication with Supabase in my Flutter app. I followed all the steps in the Supabase documentation, but when I try to log in I get the following error: Unhandled Exception: AuthException(message: Unacceptable audience in id_token, statusCode: 400) The stacktrace is: The apple auth works from an Android device using But on an IOS device I get the issues described above. Besides the code provided here: https://supabase.com/docs/guides/auth/social-login/auth-apple?platform=flutter I added the crypto package to manage the SHA hashing. Did anyone mange to make this work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Kind of fixed this by putting the Bundle ID instead of service id in SOCIAL_EXTERNAL_APPLE_CLIENT_ID field and works for users previously logged in, but for new users I get Bad ID token, statusCode: 400 |
Beta Was this translation helpful? Give feedback.
-
For Apple sign-in on iOS, what you want to do is to enter the bundle ID on For Android, you want to add the service ID and signing key into your Supabase dashboard on Apple provider page. |
Beta Was this translation helpful? Give feedback.
For Apple sign-in on iOS, what you want to do is to enter the bundle ID on
Authorized Client IDs
section of the Supabase dashboard on Apple provider page.For Android, you want to add the service ID and signing key into your Supabase dashboard on Apple provider page.