-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Description
I'm using Supabase and I have recently enabled RLS. So far postgres.js has been working great as my DB client of choice in my API endpoints, but now that I have RLS enabled, I'm not sure how to issue queries as a Supabase user (auth.users table). I do use the Supabase JS client to retrieve the current user but I'm not sure what to do next. I've heard SET LOCAL current_user_id = XXX
was an option but I'm not sure whether 1. it's working and 2. it's secure.
Metadata
Metadata
Assignees
Labels
No labels