Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update auth0.mdx

Novanda Ahsanc26f2fe75818
diff --git a/web/docs/guides/integrations/auth0.mdx b/web/docs/guides/integrations/auth0.mdx
index d93400d7ce0..91b80e33fe2 100644
--- a/web/docs/guides/integrations/auth0.mdx
+++ b/web/docs/guides/integrations/auth0.mdx
@@ -401,7 +401,7 @@ Write the following and click `Run`.
```sql
create or replace function auth.user_id() returns text as $$
- select nullif(current_setting('request.jwt.claims.userId', true), '')::text;
+ select nullif(current_setting('request.jwt.claims', true)::json->>'userId', '')::text;
$$ language sql stable;
```