fix: update all examples and snippets to use select for auth rls func… (#22632)

fix: update all examples and snippets to use select for auth rls functions
This commit is contained in:
Charis authored and GitHub committed 2024-04-11 12:56:11 -04:00
1 parent b07f8304e0
commit 5d8cef6040
48 files changed
+151 -152

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ create policy "Users can view private_posts if they have signed in via MFA"
on public.private_posts
for select
to authenticated
using (auth.jwt()->>'aal' = 'aal2');
using ((select auth.jwt()->>'aal') = 'aal2');
```
- Run the app and test the login flow 🚀