Hi Albert,
Thank you for the suggestion — adding the print() statements
before passing the credential to Firebase gave us exactly the
information we needed.
For anyone else hitting this thread, here is what the logs
revealed:
The Apple Sign-In flow on iOS works correctly. The user can
authenticate, the Apple ID screen appears, and we receive a
valid ASAuthorizationAppleIDCredential from
SignInWithApple.getAppleIDCredential(), including:
identityToken: present (918 chars, well-formed JWT)
authorizationCode: present
userIdentifier: present
rawNonce length: 32
The credential is then passed to FirebaseAuth via
OAuthProvider('apple.com').credential(idToken, rawNonce),
and only at that point does Firebase reject it with:
[firebase_auth/invalid-credential]
Invalid OAuth response from apple.com
So you were right — the Apple side is healthy. The issue is
between the credential we receive and how Firebase Auth
validates it. We will continue investigating on the Firebase
side (provider configuration, nonce handling) and follow up
with the Flutter / Firebase community as you suggested.
Thanks again for your time.
Best regards,
Dogukan
Topic:
Privacy & Security
SubTopic:
Sign in with Apple
Tags: