Closed skyf0l closed 9 months ago
Usernames and emails should be stored in the user table, not keys. Keys aren't intended to store more than the connection between an auth provider and a user. I'm open to listening to your use case, but we're removing keys in v3 anyway so I likely won't implement it.
I'm switching my app from next-auth to lucia, and I need a table like next-auth's Account
table. This seems to be implemented in lucia v3, so I'll wait.
Description
In my case, I would add more information to the key table, such as usernames or emails, to more easily identify multiple providers. I need the same as
DatabaseUserAttributes
orDatabaseSessionAttributes
, but for keys.