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
When using schema as a constructor (ex: drizzle), the corresponding type is automatically used as the type of userId.
Mongodb's id type should be always string (afaik)
In other cases, use it as the Generic argument of Adapter.
const adapter = new Mysql2Adapter<number>(...);
WIP
[ ] prisma
Please let me know if you have any discuss or problems with the direction of the work.
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
When using schema as a constructor (ex: drizzle), the corresponding type is automatically used as the type of userId.
Mongodb's id type should be always string (afaik)
In other cases, use it as the Generic argument of Adapter.
WIP
[ ] prisma
Please let me know if you have any discuss or problems with the direction of the work.