lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.42k stars 449 forks source link

Custom user ID #1472

Closed pilcrowOnPaper closed 4 months ago

pilcrowOnPaper commented 4 months ago

Closes #1366

iftachhh commented 1 week ago

Hey @pilcrowOnPaper, considering it is now possible to explicitly set the UserId type, maybe there should be an option to explicitly set the type of SessionId as well? My database is MongoDB (with the MongoDBAdapter, of course), and I’d love to use the native new ObjectId() wherever I can.