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

Switch to using a locally generated primary user id #6

Closed
specious opened this issue Dec 22, 2021 · 1 comment
Closed

Switch to using a locally generated primary user id #6

specious opened this issue Dec 22, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@specious
Copy link
Member

Currently, when someone signs in for their first time (which is with Google, as that is at the moment the only way to sign in), their identity gets created in the users table.

Their Google identifier (prepended by g:) is used as their primary identification key in the system.

It would be proper to generate a sensible internal identifier to use as the primary key that distinguishes them from all other accounts, and link their external accounts to it.

@specious specious added the enhancement New feature or request label Dec 22, 2021
@specious
Copy link
Member Author

On the other hand, it might be quite reasonable to identify the user by the first third-party identity that they signed in with. For sign-in with Facebook and Apple their id could start with f: and a:, respectively.

Their other identities can be linked to the primary one.

If any problems arise with this, migration to a different scheme could be considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant