lucia-auth / lucia

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

[Feature Request]: Edgedb adapter #1551

Closed kelbyfaessler closed 2 months ago

kelbyfaessler commented 2 months ago

Package

lucia

Description

I suspect Edgedb usage will grow given its focus on performance and DX. I only just dug into it myself, but it sounds compelling: single digit query latencies and faster than neon/planetscale/supabase, no need for an ORM, branching + merging workflow similar to planetscale, etc. If it grows, I suspect more Lucia users to ask about integrating with it.

It does offer its own auth solution, but a lucia adapter would still be useful in cases where lucia auth offers features that edgedb auth does not, or when porting an existing app that uses lucia to edgedb.

Edgedb uses postgres under the hood, so maybe an edgedb adapter wouldn't be too hard since there's already one for postgres.

pilcrowOnPaper commented 2 months ago

Given the low usage, I don't think we should add an adapter for it, especially since it won't fit in with the rest of the existing Postgres adapter package.

Extarys commented 2 months ago

@kelbyfaessler Were you planning on making an adapter ? I'm still evaluating my options for svelte authentication with edgedb.

kelbyfaessler commented 2 months ago

@Extarys Not sure yet. If you look on discord there were a couple other people who attemted an edgedb adapter. It sounds like one might've been successful.

Are you starting a new project? If so, why not just use the built-in auth that comes with edgedb?

Extarys commented 2 months ago

Are you starting a new project? If so, why not just use the built-in auth that comes with edgedb?

Lacks flexibility, but I might try it anyway haha

Auth.js have an EdgeDB adapter, though, might investigate that path.

thanks for the discord plug, I'll check it out!