Expo Sign in with Apple: clientId vs appId vs serviceId vs bundleId ?!? 🤷
Trying to work through this: https://www.better-auth.com/docs/authentication/apple#configure-the-provider
It says:
On native iOS, it doesn't use the service id but the app id (bundle id) as client id, so if using the service id as clientId in signIn.social() with idToken, it throws an error: JWTClaimValidationFailed: unexpected "aud" claim value. So you need to provide the appBundleIdentifier when you want to sign in with Apple using the ID Token.So, for native, what should this value be? I have tried every permutation in my account and it's always the same JWTClaimValidationFailed error. Does anyone have this working and can tell me what value needs to be used here?
Apple | Better Auth
Apple provider setup and usage.
Solution:Jump to solution
I figured it out - the appBundleIdentifier has to be host.exp.Exponent when using expo dev
1 Reply
Solution
I figured it out - the appBundleIdentifier has to be host.exp.Exponent when using expo dev