I want to add a new data to firebase authentication which has data like displayname, phone number, image. But i want to add more such gender, birthday and more. is it possible to add new?
2 Answers
There is no way to add arbitrary additional data to Firebase Authentication user profiles. If you want that, consider using the Firebase Realtime Database (or Cloud Firestore) for storing the additional information.
This approach has been covered in quite a few questions in the past, so I'll link you to those:
- Firebase: setting additional user properties
- Add extra User Information with firebase
- How do I link each user to their data in Firebase?
- Swift & Firebase - How to store more user data other than email and password?
- Store additional information during registration with Firebase in Android
- How to add additional information to firebase.auth()
Since a few weeks ago you can add small bits of information to the Firebase Authentication user profile. While this might sound like what you need, it is explicitly not meant for storing user metadata such as you need. Instead this is intended for storing so-called claims: properties about the user that you then access in the security rules. See the documentation for setting custom claims.

- 565,676
- 79
- 828
- 807
-
Thank you so much sir. I think i would use Firebase Realtime Database instead of Firebase Authentication – Wahyu Setiawan Oct 10 '17 at 03:56
-
Could you help me how to link between Firebase Realtime Database and Firebase Authentication? I mean i would use Realtime Database for saving additional user infomation then Authentication just used for Log In Authentication. – Wahyu Setiawan Oct 10 '17 at 04:15
-
Did you read the links I shared? Multiple of them show precisely how to do this in various languages. If you're having a hard time making it work, share [the code of where you got stuck](http://stackoverflow.com/help/mcve) (read the link, it's quite useful). – Frank van Puffelen Oct 10 '17 at 04:32
-
This is one of the responses I want to press more than one time on the UP button :) Thx a lot for the detailed response ! – Victor Mar 14 '20 at 17:11
I had the same problem when introducing user roles for authorization in my React with Firebase application. Somehow I wanted to be able to pass a roles property to the authenticated user, but found myself again in Firebase's restrictive framework of doing it their way.
I found a way around it by (1) managing users myself in the Firebase database and (2) merging the authenticated user with the database user when the application loads. Then I am able to add additional user properties (e.g. roles) to my database user, because it will be merged with the authenticated user anyway.
If you are interested in this approach, checkout this tutorial.

- 14,900
- 10
- 82
- 107