lucia-auth / lucia

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

make user id type to be infer from adapter #1354

Closed lxia1220 closed 7 months ago

lxia1220 commented 7 months ago

Problems

Currently, lucia only supports the string type userId, it makes difficult to apply that use existing integer userId or other types. This was changed to enable user input through Generic. (Just play with TS)

Features

pilcrowOnPaper commented 7 months ago

Thanks for the PR but can you open a new feature request first? The change could possibly be a breaking change