You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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