auth.uid() = user_id not working on server
I've been following this RLS video tutorial in the docs, but can't for the life of me get it to work for the currently authenticated user.
I have a column in my table called
However when calling
Any ideas what I'm doing wrong?
I have a column in my table called
user_id where I'm saving the uid, and I'm trying to create the following policy.However when calling
supabase.from("user-trips").select("*"); I'm simply getting an empty array.Any ideas what I'm doing wrong?