How to fetch the logged in user data?

Hi chris, I got a question after I followed your turoial. I knew the data of user like name is stored in database, how can I fetch that name of logged in user? and what the right way to add document under that logged in user? Tutorial link: https://www.youtube.com/watch?v=1HN7usMROt8&lc=z23odrcrbp2muzdexacdp432lojqhzo5tfdsmqtonztw03c010c

Hey Lucas,

For getting information about the current user, check this article out:
https://firebase.google.com/docs/auth/web/manage-users#get_the_currently_signed-in_user

You can get the currently logged in user and info about that. For adding documents under that user, you’ll do it the same way like I showed in the video tutorial for saving the first and last name.

Hope that helps and welcome to the forum!
Chris