Skip to content

Extra User Data


Challenge

We've yet to capture our users' full names even though they enter it on the Sign up form. So, when a user signs up, store their full name in a Firestore collection called users. Then display the logged-in user's full name on the navbar (as opposed to displaying their email address).

Demo Show full name

displayName

Firebase auth includes a field called displayName in the user object. This might be an appropriate place to store user names, but it defeats the purpose of this exercise. So, don't piggyback this field. Store the users' full names in a users collection in Firestore.