diff --git a/demos/supabase-auth/README.md b/demos/supabase-auth/README.md index e772195e56..1da193c84a 100644 --- a/demos/supabase-auth/README.md +++ b/demos/supabase-auth/README.md @@ -17,10 +17,9 @@ create table alter table "public"."users" enable row level security; -CREATE POLICY "Only authed users can SELECT their row" ON "public"."users" -AS PERMISSIVE FOR SELECT -TO authenticated -USING (true) +create policy "Individuals can view their own user records." +on users for select +using ( (auth.jwt() ->> 'id')::bigint = id); ``` Screenshot 2023-11-26 at 12 23 04