https://supabase.com/ logo
For use in policies, create an `auth.user()` funct...
# ideas-and-suggestions
r
For use in policies, create an
auth.user()
function (similar to auth.id() and auth.user_id()) that returns
public.users WHERE users.auth_id = auth.id() LIMIT 1
(probably not the right syntax but you get the intent) so that ANY attribute on the matching user record can be used in a policy.