firebase/auth updateProfil reset #5736
Unanswered
boringContributor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I implemented an application with basic firebase auth operations (email, password).
I allow the user to upload a profile picture to firebase storage and link this with the firebase auth user data as I don't want to store it in firestore.
Now comes the problem. When I want to implement a functionality to allow the user to remove its profile picture, I can't "reset" the user auth data. Basically what I want to do is:
to "reset" the photoURL to its initial state. Neither null nor undefined nor empty "" string is working. I checked the implementation and Im curious why undefined is not allowed here?
What would be an approach here?
firebase-js-sdk/packages/auth/src/core/user/account_info.ts
Line 45 in acc5810
Payload looks like this
while the response is this
Beta Was this translation helpful? Give feedback.
All reactions