Newbie RLS question
I'm working on a React app and I want to use RLS, but I'm stuck in how to actually make the request to supabase when the user is authenticated, here's what I'm trying:
const {data, error} = await supabase.from("profile").select().eq("id",user.id)
Where the "profile" table references auth.id on column "id" and I already have the user authenticated and its id on user.id
But I get this error:
permission denied for table profile
I'm sure it's easy but I haven't found how to do it in the docs,
Thanks!
const {data, error} = await supabase.from("profile").select().eq("id",user.id)
Where the "profile" table references auth.id on column "id" and I already have the user authenticated and its id on user.id
But I get this error:
permission denied for table profile
I'm sure it's easy but I haven't found how to do it in the docs,
Thanks!