[firebase_auth]: Error invalid_credential on iOS when attempting to call revokeTokenWithAuthorizationCode #16744
Labels
Needs Attention
This issue needs maintainer attention.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: auth
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
I have set up Sign In with Apple according to the docs and have followed multiple tutorials to make sure I did everything right in my Apple Developer account and Firebase Settings. Pretty sure I'm good to go.
My app sign in with apple does work. The user gets signed up and can use my app normally. The problem is when allowing a user to delete their account. This is the error I get:
[firebase_auth/invalid-credential] Error getting access token from Apple. OAuth2 redirect uri is
The message leads me to think I didn't set something up right, but I have no idea where I would set an "OAuth2 redirect uri"
Expected result: Apple sign in is revoked and disappears from the Apps using Apple Sign In section in apple account settings.
Actual result: Above error message.
Reproducing the issue
Here is my code for both sign up and account deletion. According to the docs here, this is all I need: https://firebase.google.com/docs/auth/flutter/federated-auth#revoke-apple
Firebase Core version
3.8.0
Flutter Version
3.24.3
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: