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:

Hey Lucas,

For getting information about the current user, check this article out:

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!