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
This issue is mostly to understand why updateProfile method doesn't return the updated user in the promise callback ?
Firebase is ok to manage user, but what's the point to update a user and not getting the new user value back ?
If i make a register form, with the first name and last name, i need to create a user with email and password, then call update profile to update the display name, but i will not be able to save those value in my state, so when the user is redirected to is account page i need to do an other request to get the updated value.
Same way when i update the photoUrl. update is maked, update of the photoUrl is ok, but then i need to trigger a reload of the data to get the new value and update the account settings.
It's a realy wierd way to do it i think.
But maybe i don't see the point, but i will rather user database to store all user values.
The text was updated successfully, but these errors were encountered:
This issue is mostly to understand why updateProfile method doesn't return the updated user in the promise callback ?
Firebase is ok to manage user, but what's the point to update a user and not getting the new user value back ?
If i make a register form, with the first name and last name, i need to create a user with email and password, then call update profile to update the display name, but i will not be able to save those value in my state, so when the user is redirected to is account page i need to do an other request to get the updated value.
Same way when i update the photoUrl. update is maked, update of the photoUrl is ok, but then i need to trigger a reload of the data to get the new value and update the account settings.
It's a realy wierd way to do it i think.
But maybe i don't see the point, but i will rather user database to store all user values.
The text was updated successfully, but these errors were encountered: