auth.uid()
in a Supabase RLS policy is the same as request.user_id()
(previously token_parameters.user_id
) in Sync Rules.
If you compare these to your Sync Rules configuration in sync-rules.yaml
, you’ll see they are quite similar.
If you have any questions, join us on our community Discord where our team is always available to help.