vanceEl
vanceEl
BABetter Auth
Created by luksch42 on 3/5/2025 in #help
Sign in with Apple in web fails / error: 'invalid_client'
it's not so easy to cache it if you are deploying with next on vercel unfortunately. I'll switch to generating it on deploy via next.config.js but that still means having to deploy at least once in 6 months
15 replies
BABetter Auth
Created by luksch42 on 3/5/2025 in #help
Sign in with Apple in web fails / error: 'invalid_client'
I'm using this bun script to generate the credentials bun run generate-apple-secret.ts --team <TEAM_ID> --key <KEY_ID> --client <CLIENT_ID> --private <PATH_TO_P8> and I also set the appBundleIdentifier. However, very frustratingly, login was working for me using the release version on testflight but apple review team couldn't login. Adding "https://appleid.apple.com" to the trustedOrigins solved the issue but wasn't obvious since I never observed the error directly.
15 replies