Skip to content
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

FR: updateProfile() should return the updated user values #2062

Open
thomaslc66 opened this issue Aug 7, 2019 · 0 comments
Open

FR: updateProfile() should return the updated user values #2062

thomaslc66 opened this issue Aug 7, 2019 · 0 comments

Comments

@thomaslc66
Copy link

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.

@hiranya911 hiranya911 transferred this issue from firebase/firebase-admin-node Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants