[firebase_auth] updateCurrentUser method missing from API #4528
Unanswered
olof-dev
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
updateCurrentUser
method of the Firebase Auth API appears to be missing from the Flutter implementation. This method would for example be useful for resetting to an anonymous user if a problem was encountered during a subsequent sign-in. For example, in the flowanonymous user
-->linkWithCredential
-->credential-already-in-use
, the natural flow (as in the docs at https://firebase.google.com/docs/auth/android/account-linking#java_4 ) would be to sign in with the credentials viasignInWithCredential
and attempt to merge the two users. If merging were to fail for some reason, I'd want to be able to reset state to being as it was before the sign-in, ie return to the anonymous user. I think (but am not sure, as I only use Firebase via Flutter) thatupdateCurrentUser
would allow for this.In the Android API ref:
https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuth#updateCurrentUser(com.google.firebase.auth.FirebaseUser)
Would it be possible to get this method into Flutter Firebase API?
Beta Was this translation helpful? Give feedback.
All reactions