Tuesday, September 9, 2025
HomeiOS Developmentios - Unhandled Exception: Invalid OAuth response from apple.com

ios – Unhandled Exception: [firebase_auth/invalid-credential] Invalid OAuth response from apple.com


The Resolution I discovered was a single line of code which I added.

// Request credential for the presently signed in Apple account.
remaining appleCredential = await SignInWithApple.getAppleIDCredential(
    scopes: [
        AppleIDAuthorizationScopes.email,
        AppleIDAuthorizationScopes.fullName,
    ],
    nonce: nonce,
);

// Create an `OAuthCredential` from the credential returned by Apple.
remaining oauthCredential = OAuthProvider("apple.com").credential(
    idToken: appleCredential.identityToken,
    rawNonce: rawNonce,
    accessToken: appleCredential.authorizationCode, <-- ADDED THIS LINE
);

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments