Using firebase auth, it'd be very convenient to store some info about a user. I'm aware of storing info on firebase.auth().currentUser
like email
& displayName
. Is there a way I can make my own property and store info on the user I want to? I have tried manually adding a property but it doesn't persist.
Asked
Active
Viewed 433 times
0

tonitone120
- 1,920
- 3
- 8
- 25
1 Answers
0
Firebase Auth was not designed to store arbitrary user data. You're supposed to use a database for that, and link that data to the user account via its UID. The choice of database is completely up to you, but it's common to use Realtime Database or Firestore, since you can also use security rules to restrict access to just that user
See also:

Doug Stevenson
- 297,357
- 32
- 422
- 441