r/better_auth

▲ 5 r/better_auth+1 crossposts

Supabase RLS and Better Auth

Hey guys,
So I’m building something and want to use Better Auth because it offers a variety of plugins (specifically organizations plugin which is critical for my app). The thing is by using Better Auth I kind of sacrifice using RLS in Supabase because it utilizes the auth.uid which is not passed by Better Auth.
My question is, is there a way of using Supabase RLS while using Better Auth as the authentication provider?

reddit.com
u/notZEPHR — 7 days ago