Skip to content

Create User Document On Initial Login #7

@LamboCreeper

Description

@LamboCreeper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThe issue is accepted and PRs are welcomeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions