Service role not bypassing RLS
I'm creating a SupabaseServerClient using the @supabase/ssr package, it looks like this:
This client is used in my Auth callback route to fetch user data, determining if the user is new or not.
If I disable RLS on the users table, it returns the expected result.
If I enable RLS on the users table, it returns a blank result.
The users table has no RLS policies.
Why is this?
I might be misunderstanding something, but I thought the Service Key is meant to bypass RLS. Thanks.
This client is used in my Auth callback route to fetch user data, determining if the user is new or not.
If I disable RLS on the users table, it returns the expected result.
If I enable RLS on the users table, it returns a blank result.
The users table has no RLS policies.
Why is this?
I might be misunderstanding something, but I thought the Service Key is meant to bypass RLS. Thanks.