lucia-auth / lucia

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

[Feature Request]: PostgresJS adapter #695

Closed david-plugge closed 1 year ago

david-plugge commented 1 year ago

Description

Add an adapter for https://github.com/porsager/postgres

david-plugge commented 1 year ago

I´m using drizzle with postgres.js, i wonder why lucia does not make use of the orm but rather the driver directly.

Edit: Found #524, makes sense!

pilcrowOnPaper commented 1 year ago

I initially didn't implement this because postgres uses tag functions but I realized it's just a regular function under the hood. Generating the SQL statement is going to be a bit more complicated but I'll add it post v2!

pilcrowOnPaper commented 1 year ago

Done #782 !