-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Decide best practice for user ID in DB schema #163
Comments
Lucia v3 used Looking at Lucia codebase, this is what the function looked like:
https://github.com/lucia-auth/lucia/blob/v3/packages/lucia/src/crypto.ts Perhaps do the following:
This approach also doesn't require new dependencies since Lucia V4 approach already depends on Oslo. Oslo docs: https://oslo.js.org/reference/encoding/Base32Encoding/ |
Drizzle adder uses an integer. Lucia uses a string
It would be nice to be consistent both to promote best practices and to avoid users having to migrate their DB if they setup drizzle first and then come back later and setup lucia
Some people don't like ints because it reveals how many users they have
The Lucia integration is done app side. I'm not sure if that has downsides and would be better to be done in the database? It does use an extra dependency currently, but maybe there's a Node built-in we could leverage if we do want to do it app side?
The text was updated successfully, but these errors were encountered: