lucia-auth / lucia

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

[Feature Request]: Adapter for AstroDB #1496

Closed lukas-muentinga closed 3 months ago

lukas-muentinga commented 3 months ago

Package

lucia

Description

Issue

Astro-build features Lucia but Lucia does not currently support their AstroDB as neither the Drizzle Adapter nor the SQLite / LibSQL Adapter fit it.

Request

Make Lucia usable with AstroDB.

Suggested Solutions

1) Implement separate AstroDB Adapter

2) Refactor Drizzle SQLite Adapter to work with AstroDB databases

AstroDB ships with a drizzle-orm implementation, so maybe the sqlite adapter for drizzle-orm could be adjusted to fit both generic sqlite databases with drizzle and astro db?

(This is my very first issue, feedback is greatly appreciated!)

otodockal commented 3 months ago

https://github.com/pilcrowOnPaper/lucia-adapter-astrodb

pilcrowOnPaper commented 3 months ago

Since adding new packages is an additional maintenance burden, we only add them when there's enough demand. I highly doubt there's enough demand for Astro DB right now.

If lucia-adapter-astrodb gets enough installs, I'll consider making it an official package.