Clerk with Supabase: use Supabase's third-party auth integration so RLS sees the Clerk user
@devsingh05▲ 4 net votes
When Clerk handles sign-in, Supabase RLS needs to trust Clerk's session token. Enable the Clerk integration in Supabase (Authentication, third-party providers) and in Clerk, then create the Supabase client with an accessToken callback that returns the Clerk session token. Policies can then read the user id from the JWT claims. Older guides used a custom JWT template with the Supabase secret, which is no longer the recommended path.