The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update http context postgrest 9
Novanda Ahsan657aefdaacbb
diff --git a/web/docs/learn/auth-deep-dive/policies.md b/web/docs/learn/auth-deep-dive/policies.mdindex 38c06e51dac..9530ab6af63 100644--- a/web/docs/learn/auth-deep-dive/policies.md+++ b/web/docs/learn/auth-deep-dive/policies.md@@ -137,7 +137,7 @@ Once you get the hang of policies you can start to get a little bit fancy. Let's```sqlcreate or replace function auth.email() returns text as $$- select nullif(current_setting('request.jwt.claim.email', true), '')::text;+ select nullif(current_setting('request.jwt.claims', true)::json->>'email', '')::text;$$ language sql;create policy "Only Blizzard staff can update leaderboard"diff --git a/web/docs/learn/auth-deep-dive/row-level-security.md b/web/docs/learn/auth-deep-dive/row-level-security.mdindex e474b26da49..3238745e28c 100644--- a/web/docs/learn/auth-deep-dive/row-level-security.md+++ b/web/docs/learn/auth-deep-dive/row-level-security.md@@ -96,7 +96,7 @@ CREATE POLICY anon_read_leaderboard ON leaderboard```sql-- Gets the User Role from the request cookiecreate or replace function auth.role() returns text as $$- select nullif(current_setting('request.jwt.claim.role', true), '')::text;+ select nullif(current_setting('request.jwt.claims', true)::json->>'role', '')::text;$$ language sql stable;```