is it possible to use a reference (like field name) provided by client in supabase api call in RLS policy instead of auth.uid()? #19346
devhandler
started this conversation in
General
Replies: 1 comment 2 replies
-
If it is not part of the your table as a column, then you need to pass it in a header. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in rls policy, for id check, generally we use auth.uid() = id, etc. but for other use cases, if a client provide a string with a key, say {key: 'value'}, how can we write a select RLS policy to check (e.g., for table A) sth like "key = A.key"?
thanks.
Beta Was this translation helpful? Give feedback.
All reactions