Why Isn't RLS Working with Drizzle and Supabase?

Hi everyone,

When I enable the new RLS (Row-Level Security) feature on Drizzle and Supabase and migrate, I can see it applied, but it doesn't seem to work as expected. Unfortunately, all data is still accessible, even though the default behavior should block access if no policies are defined.

Do I need to write some specific queries with Drizzle for RLS to function properly?
Or is there a different way to connect to Supabase to make it work?

I'd be very grateful if anyone could help. Thanks in advance!
image.png
code.png
Was this page helpful?