The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: clarify authorisation window when policies change (#50695)
Sean Geoghegan830c06d494d6
diff --git a/apps/docs/content/guides/realtime/authorization.mdx b/apps/docs/content/guides/realtime/authorization.mdxindex 7b8cd831b9b..7dc0410d29c 100644--- a/apps/docs/content/guides/realtime/authorization.mdx+++ b/apps/docs/content/guides/realtime/authorization.mdx@@ -402,6 +402,8 @@ Realtime updates the access policy cache for a client based on your RLS policies- A client connects to Realtime and subscribes to a Channel- A new JWT is sent to Realtime from a client via the [`access_token` message](/docs/guides/realtime/protocol#access-token)+This means that if you revoke a user's access (for example, by removing a row an RLS policy uses to grant it) while they're still connected, they'll keep receiving messages until their JWT expires or a new one is sent.+If a new JWT is never received on the Channel, the client will be disconnected when the JWT expires.Make sure to keep the JWT expiration window short.