You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user logs in, create a database entry for them if it does not already exist.
Collection:users Document ID: The user's Firebase Auth ID Document Data:
{
created: Date;// The date at which the document is created
connected_accounts: {
github: String;// The user's GitHub user ID}}
User Story
As a user I want to have a database entry So that I data can be stored about me
Notes
Firebase's serverTimestamp() method should be used for the created field
The user's GitHub ID can be accessed using the uid field within the providerData array on a user's auth account. Use the providerData entry which has a providerId of github.
The text was updated successfully, but these errors were encountered:
Description
When the user logs in, create a database entry for them if it does not already exist.
Collection:
users
Document ID: The user's Firebase Auth ID
Document Data:
User Story
As a user
I want to have a database entry
So that I data can be stored about me
Notes
serverTimestamp()
method should be used for thecreated
fielduid
field within theproviderData
array on a user's auth account. Use theproviderData
entry which has aproviderId
ofgithub
.The text was updated successfully, but these errors were encountered: