I have a react app with a login page using firebase auth, where i can login using either facebook or google. This works fine, i can display the username and its avatar.
I am using mongodb, for saving other items, and i have a user model where i wish to save some extra data such as country, age etc. Can i in some way combine firebase auth user data with mongodb, so when i create a new user can i then create a new user with mongodb, but later on add extra info such as country, age etc? I guess mongodb would need to match some id with the user id?
What i have tried:
I havent tried the solution above because im unsure if it will work, or if i should just scrap firebase auth, and just use mongodb for my authentication.