FirebaseAuth revokeTokenWithAuthorizationCode() not working #11723
-
When call revokeTokenWithAuthorizationCode(), throws an error. Error: FirebaseAuthException Following code is generating this issue. final provider = AppleAuthProvider();
final credential = await FirebaseAuth.instance.signInWithProvider(provider);
await FirebaseAuth.instance.revokeTokenWithAuthorizationCode(credential.additionalUserInfo!.authorizationCode!); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @WellingtonBipo , I came across the mentioned issue and found a solution that worked for me. In the Firebase console, it's crucial to properly configure the Apple sign-in section. Specifically, you'll need to ensure the "Services ID" and "OAuth code flow configuration" are correctly set up. The UI states that these fields are optional or not required for Apple. However, for token revocation, they are required. |
Beta Was this translation helpful? Give feedback.
Hi @WellingtonBipo ,
I came across the mentioned issue and found a solution that worked for me. In the Firebase console, it's crucial to properly configure the Apple sign-in section. Specifically, you'll need to ensure the "Services ID" and "OAuth code flow configuration" are correctly set up. The UI states that these fields are optional or not required for Apple. However, for token revocation, they are required.