Supabase is no longer supported, maybe #325
Replies: 4 comments 8 replies
-
@pilcrowonpaper supabase has released better SSR support: https://supabase.com/docs/guides/auth/server-side/creating-a-client |
Beta Was this translation helpful? Give feedback.
-
@pilcrowonpaper pls review @nathanaelphilip 's comment |
Beta Was this translation helpful? Give feedback.
-
@pilcrowonpaper cant we just connect to the postgres databse directly like this: https://lucia-auth.com/guidebook/drizzle-orm/#postgres |
Beta Was this translation helpful? Give feedback.
-
Hi, and before all, I want to thank the developers and community! I was trying to make some-kind of adapter between postgREST and Lucia, like, instead of connecting to the PG database directly from Lucia, doing it through postgREST API endpoints. for example:
would be "something like"
Is that impossible/stupid/nonsensical? I kinda understood that postgREST was a very good option in terms of scalability, security etc. (bc of heskell?) but I´m don´t have this very clear... Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
-
This should've been its own announcement. Really apologize for the sudden announcement. I've decided to remove the Supabase adapter, for now.
The issue is transactions. With the introduction of keys, transactions were required to properly query the database. There's been discussion to add transactions to Supabase and PostgREST (the library behind the Supabase db client) for years, but it's still not supported. It seems Supabase themselves don't intend their library/client to be used in the server, or more accurately, just prioritizing their client side APIs.
That said, I know many people used the adapter, and supporting it isn't a big burden, so I'm open to supporting it again. Just keep in mind that it won't be as reliable as the other adapters.
I just want to add that I should've handled this better. Initially I thought it would've been better to just make a decision. I didn't want to publish a package with a hacky implementation, since that goes against what Lucia aims to provide. But I should've just updated the package to 0.6.0, and started a discussion on whether to continue support for Supabase, rather than just making an immediate decision.
Really apologize for breaking the trust between the library author (me) and the users.
Beta Was this translation helpful? Give feedback.
All reactions