lucia-auth / lucia

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

Add DynamoDB adapter to list of community supported adapters #1604

Closed Kawba closed 3 months ago

Kawba commented 3 months ago

Add DynamoDB adapter to list of community supported adapters.

choutianxius commented 3 months ago

I have been working on a similar project earlier this year and also published it on NPM. Some other folk made a fork of it to fit their business needs, resulting in another package.

My lessons are that it's kind of hard to come up with a solution to implement auth with NoSQL that generalizes well, since the auth records often have to live with other business-specific records in the same NoSQL table, unlike with relational databases where the adapter controls its own dedicated tables.

Therefore I will just present the above links here, I don't expect them to appear on the Lucia docs since it's likely that larger projects using DynamoDB will end up building their own adapters to fit existing table schemas, but it will be cool that the above works can also be recognized.

By the way, @Kawba you may add tests to your library using @lucia-auth/adapter-test

pilcrowOnPaper commented 3 months ago

Ooof, sorry it took 2 weeks - thanks!