The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(docs): update required claims for access token (#36021)
Cemal Kılıçf6b316e1cff3
diff --git a/apps/docs/content/guides/auth/auth-hooks/custom-access-token-hook.mdx b/apps/docs/content/guides/auth/auth-hooks/custom-access-token-hook.mdxindex d26c8eee48d..4c0af8c9c46 100644--- a/apps/docs/content/guides/auth/auth-hooks/custom-access-token-hook.mdx+++ b/apps/docs/content/guides/auth/auth-hooks/custom-access-token-hook.mdx@@ -10,8 +10,9 @@ Claims returned must conform to our specification. Supabase Auth will check forThese are the fields currently available on an access token:-Required Claims: `iss`, `aud`, `exp`, `iat`, `sub`, `role`, `aal`, `session_id`-Optional Claims: `jti`, `nbf`, `app_metadata`, `user_metadata`, `amr`, `email`, `phone`+Required Claims: `iss`, `aud`, `exp`, `iat`, `sub`, `role`, `aal`, `session_id`, `email`, `phone`, `is_anonymous`++Optional Claims: `jti`, `nbf`, `app_metadata`, `user_metadata`, `amr`,**Inputs**@@ -241,7 +242,10 @@ as $$'sub','role','aal',- 'session_id'+ 'session_id',+ 'email',+ 'phone',+ 'is_anonymous'] loopif original_claims ? claim then-- original_claims contains one of the listed claims, set it on new_claims