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:
{
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.
Description
When the user logs in, create a database entry for them if it does not already exist.
Collection:
usersDocument 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 thecreatedfielduidfield within theproviderDataarray on a user's auth account. Use theproviderDataentry which has aproviderIdofgithub.