Skip to content

[Bug] iOS: BadRequestRestException: Bad Request (Unacceptable audience in id_token: xxx) #934

Open
@658jjh

Description

@658jjh

General Info

  • I checked for similar bug report
  • I am using the latest version
  • I checked the troubleshooting page for similar problems

Version(s)

3.1.4

Kotlin Target(s) and their respective versions

JVM 17, iOS18

What happened? (include your code)

Hi, I’m running into an issue when trying to implement login with Apple on iOS using Supabase in a Kotlin Multiplatform (KMP) project.

Google login works fine on Android, and the Apple login code is basically the same in structure. But when I try to sign in with Apple on iOS, I get this error:
BadRequestRestException: Bad Request (Unacceptable audience in id_token: xxx)

here is how I call login:
supabase.composeAuth.rememberSignInWithApple()

Is there anything specific I need to configure on the Apple Developer side or in Supabase for this to work correctly on iOS?

Thanks in advance!

Steps To Reproduce (optional)

No response

Relevant log output (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions