Supabase RLS - succed with (auth.uid() = user_id)?

The query seems to be fine, I’d look at the logs if I was you.
Here for example, I’m fetching a tickets table, as the very first step, I’d look at the auth_user, you have the id there, if that matches, then there is some problem in the query.

This way you make sure, you’re passing the ID to the Supabase and it’s right.

I simulated this with my account on my project and it seems to work (I did a fixed uuid as I don’t have such table with user_id)

1 Like