-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Can't deleteUser() due to auth/requires-recent-login #539
Comments
Thank you for your request! This method definitely missing. I will take a look. On the web, you can already solve the problem by calling the Firebase JS SDK directly. There is only no workaround with the Firebase Android and iOS SDK. |
BTW: I'm currently showing my users the following message:
|
Maybe this is not the right place, but I will add a quick note: According to App Store Review Guidelines, an application that provides login with apple needs to provide the delete user account and revoke the Access Token. Maybe capacitor firebase should help with the last one too? (not so sure, hence I'm asking). https://firebase.google.com/docs/auth/web/apple#token-revocation |
@waltercruz Yes, we should add this method. Please create a feature request. |
Plugin(s)
Version
5.3.0
Platform(s)
Current behavior
I implemented
deleteUser()
(thanks #281!) but if the user's most recent login is more than 5 minutes ago, the operation is rejected by Firebase with the errorauth/requires-recent-login
.In this situation, the Firebase docs say to use reauthenticateWithCredential(), however, this function is unavailable.
Expected behavior
I hope for a way to ask the user to re-authenticate in-place. Otherwise I think I'd have to log them out, which resets all app state, then get them to log back in, navigate back to the delete account page, and re-try within 5 minutes.
Reproduction
n/a
Steps to reproduce
Error: "FirebaseAuthentication.reauthenticateWithCredential()" is not implemented on web
The text was updated successfully, but these errors were encountered: