Skip to content

Using email/username as a primary key #45

Answered by pilcrowonpaper
machak asked this question in Help
Discussion options

You must be logged in to vote

You can use "username" as the auth id and the email the identifier token, and have a separate username and email column (unique) (these are represented as [user_id] columns in the docs). Lucia will throw an error if the username or email is already taken.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pilcrowonpaper
Comment options

You must be logged in to vote
1 reply
@pilcrowonpaper
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants