Skip to content

Commit 210ea3d

Browse files
authored
Fix typo (#74)
* Fix some typos * Remove beta
1 parent eaf4a08 commit 210ea3d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

installation/authentication-setup/custom.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ The process is as follows:
1212

1313
1. The client authenticates the user using the app's authentication provider and typically gets a session token — either a third-party authentication provider or a custom one.
1414
2. The client makes a backend call (authenticated using the above session token), which generates and signs a JWT for PowerSync.
15-
1. For example implementations of this backend endpoint, see [ Custom Backend Examples](/resources/demo-apps-example-projects#custom-backend-examples)
15+
1. For example implementations of this backend endpoint, see [Custom Backend Examples](/resources/demo-apps-example-projects#custom-backend-examples)
1616
3. The client connects to the PowerSync Service using the above JWT.
1717
4. PowerSync verifies the JWT.
1818

1919
The requirements are:
2020

21-
A key-pair (private + public key) is required to sign and verify JWTs. The private key is used to sign the JWT,
21+
A key pair (private + public key) is required to sign and verify JWTs. The private key is used to sign the JWT,
2222
and the public key is advertised on a public JWKS URL.
2323

2424
Requirements for the key in the JWKS URL:
@@ -33,15 +33,15 @@ Requirements for the key in the JWKS URL:
3333
5. Curve (`crv`) - only relevant for EdDSA and ECDSA:
3434
1. `Ed25519` or `Ed448` for EdDSA
3535
2. `P-256`, `P-384` or `P-512` for ECDSA
36-
6. A `kid` must be specified, and must match the `kid` in the JWT.
36+
6. A `kid` must be specified and must match the `kid` in the JWT.
3737

3838
Requirements for the signed JWT:
3939
1. The JWT must be signed using a key in the JWKS URL.
4040
2. JWT must have a `kid` matching the key in the JWKS URL.
4141
3. The `aud` of the JWT must match the PowerSync instance URL.
4242
1. To get the instance URL of a PowerSync instance when using PowerSync Cloud: In the project tree on the [PowerSync dashboard](https://powersync.journeyapps.com/), click on the "Copy instance URL" icon.
4343
2. Alternatively, specify a custom audience in the instance settings.
44-
4. The JWT must expire in 60 minutes or less. Specifically, both `iat` and `exp` fields must be present, with a difference of 3600 or less between the two.
44+
4. The JWT must expire in 60 minutes or less. Specifically, both `iat` and `exp` fields must be present, with a difference of 3600 or less between them.
4545
5. The user ID must be used as the `sub` of the JWT.
4646
6. Additional fields can be added which can be referenced in Sync Rules [parameter queries](/usage/sync-rules/parameter-queries).
4747

@@ -51,7 +51,7 @@ Since there is no way to revoke a JWT once issued without rotating the key, we r
5151

5252
#### Rotating Keys
5353

54-
If a private key is compromised, rotate they key on the JWKS endpoint.
54+
If a private key is compromised, rotate the key on the JWKS endpoint.
5555

5656
PowerSync refreshes the keys from the endpoint every couple of minutes, after which old tokens will not be accepted anymore.
5757

usage/sync-rules/advanced-topics.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebarTitle: Overview
77

88
<CardGroup>
99
<Card title="Multiple Client Versions" icon="code-branch" href="/usage/sync-rules/advanced-topics/multiple-client-versions" horizontal/>
10-
<Card title="Client Parameters (Beta)" icon="sliders" href="/usage/sync-rules/advanced-topics/client-parameters"horizontal />
10+
<Card title="Client Parameters" icon="sliders" href="/usage/sync-rules/advanced-topics/client-parameters"horizontal />
1111
<Card title="Partitioned Tables (Postgres)" icon="table" href="/usage/sync-rules/advanced-topics/partitioned-tables"horizontal />
1212
<Card title="Sharded Databases" icon="database" href="/usage/sync-rules/advanced-topics/sharded-databases" horizontal/>
1313
</CardGroup>

0 commit comments

Comments
 (0)