Replies: 1 comment
-
Hi there, The issue you're facing is likely due to using To reauthenticate the user properly, you need to follow the same process you used when the user initially signed in with Apple. You should use the By doing so, you will be able to properly reauthenticate your user who is logged in with Apple and then proceed with account deletion. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I need to add functionality to delete a user from the application. I use firebase and only Apple provider is used for registration and authorization.
When I try to re-authenticate a user using
Auth.auth().currentUser?.reauthenticate(with:)
I always get an error:error: Error Domain=FIRAuthErrorDomain Code=17094 "Duplicate credential received. Please try again with a new credential." UserInfo={NSLocalizedDescription=Duplicate credential received. Please try again with a new credential., FIRAuthErrorUserInfoNameKey=ERROR_MISSING_OR_INVALID_NONCE}
Here is the code I am using to delete a user:
I have tried to generate a new
nonce
and also tried to save and use the samenonce
as when the user was authorized but I always get the error.How to get valid credentials to re-authenticate a user who is logged in with Apple?
I would appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions