Skip to content

Commit 6b94767

Browse files
authored
1 parent ea0bd56 commit 6b94767

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/docs/content/guides/realtime/authorization.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To enforce private channels you need to disable the 'Allow public access' settin
2828

2929
Realtime uses the `messages` table in your database's `realtime` schema to generate access policies for your clients when they connect to a Channel topic.
3030

31-
By creating RLS polices on the `realtime.messages` table you can control the access users have to a Channel topic, and features within a Channel topic.
31+
By creating RLS policies on the `realtime.messages` table you can control the access users have to a Channel topic, and features within a Channel topic.
3232

3333
The validation is done when the user connects. When their WebSocket connection is established and a Channel topic is joined, their permissions are calculated based on:
3434

@@ -373,9 +373,9 @@ When using Postgres Changes with RLS, database records are sent only to clients
373373

374374
## Updating RLS policies
375375

376-
Client access polices are cached for the duration of the connection. Your database is not queried for every Channel message.
376+
Client access policies are cached for the duration of the connection. Your database is not queried for every Channel message.
377377

378-
Realtime updates the access policy cache for a client based on your RLS polices when:
378+
Realtime updates the access policy cache for a client based on your RLS policies when:
379379

380380
- A client connects to Realtime and subscribes to a Channel
381381
- A new JWT is sent to Realtime from a client via the [`access_token` message](/docs/guides/realtime/protocol#access-token)

0 commit comments

Comments
 (0)