How I can update userAuth( store additional data ) ? #253
Replies: 3 comments 2 replies
-
Not sure if you want to update the database document or AuthUser object. But if you want to update the AuthUser, you can set custom claims or update the properties by using Admin SDK. I really recommend going through Firebase docs first. |
Beta Was this translation helpful? Give feedback.
-
Hi @shreyas-jadhav, I think claims are not good for store additional data 'Custom claims are only used to provide access control. They are not designed to store additional data (such as profile and other custom data). ' My plan create a user document in firestore and store additional data, But how do we add additional data to userAuth. |
Beta Was this translation helpful? Give feedback.
-
I'm not saying using claims. You can update the already given properties. Like |
Beta Was this translation helpful? Give feedback.
-
My users need more information like firstName, lastname, billing address, ...
My plan is to create a new document in firestore and update the information to 'userAuth'
I don't see any method to update it
Best,
Huu
Beta Was this translation helpful? Give feedback.
All reactions