Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create User Document On Initial Login #7

Open
LamboCreeper opened this issue Apr 29, 2024 · 0 comments
Open

Create User Document On Initial Login #7

LamboCreeper opened this issue Apr 29, 2024 · 0 comments
Labels
accepted The issue is accepted and PRs are welcome enhancement New feature or request
Milestone

Comments

@LamboCreeper
Copy link
Member

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.
@LamboCreeper LamboCreeper added accepted The issue is accepted and PRs are welcome enhancement New feature or request labels Apr 29, 2024
@LamboCreeper LamboCreeper added this to the MVP milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The issue is accepted and PRs are welcome enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant