Replies: 4 comments
-
firebase server has a problem :/ |
Beta Was this translation helpful? Give feedback.
-
I am getting the same issue with the following code: final rawNonce = generateNonce();
final nonce = sha256ofString(rawNonce);
final AuthorizationCredentialAppleID credential;
try {
credential = await SignInWithApple.getAppleIDCredential(
scopes: [
AppleIDAuthorizationScopes.email,
AppleIDAuthorizationScopes.fullName,
],
nonce: nonce,
);
} catch (e) {
print(e);
return null;
}
// Create an `OAuthCredential` from the credential returned by Apple.
final oauthCredential = OAuthProvider("apple.com").credential(
idToken: credential.identityToken,
rawNonce: rawNonce,
);
await FirebaseAuth.instance.signInWithCredential(oauthCredential);
if (credential == null) {
// Failed to re-sign-in
return;
}
try {
FirebaseAuth.instance.currentUser.reauthenticateWithCredential(credential)
await FirebaseAuth.instance
.revokeTokenWithAuthorizationCode(
credential.authorizationCode);
} catch (e) {
print(e);
return;
} |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same problem! Did I not configure something right perhaps? @amankr @CoocooFroggy Did either of you figure out what was wrong? |
Beta Was this translation helpful? Give feedback.
-
@zakton5 Unfortunately I could not manage to get it working using solely Firebase auth / Flutter. I ended up going with this solution using Firebase functions. |
Beta Was this translation helpful? Give feedback.
-
I am trying to revoke apple token before deleting user profile in my firebase app running on Iphone 14 Pro, but is it throwing me error on
FirebaseAuth.instance.revokeTokenWithAuthorizationCode(authCode)
This is the exact error I am getting
Below is the code snippet which throws me error :
Library versions used:
Beta Was this translation helpful? Give feedback.
All reactions