Skip to content

Commit a00a7ae

Browse files
committed
DOC-2582: Copy edits, fix typos.
1 parent 08d9423 commit a00a7ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/partials/auth/document-converters/jwt-setup-document-converters.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
To set up JSON Web Token (JWT) authentication for {productname} {pluginname}:
55

6-
. Add a public ket to you {accountpage}, link:https://www.tiny.cloud/auth/login/[login].
6+
. Add a public key to you {accountpage}, link:https://www.tiny.cloud/auth/login/[login].
77
. Set up a JSON Web Token (JWT) Provider endpoint via link:{accountjwturl}[{accountpage} - JWT Keys]
88
. Configure your {productname} to use the JWT endpoint.
99

@@ -35,7 +35,7 @@ The `aud` is case-sensitive string that must match a valid API key that has the
3535
`+iat+` _(required)_::
3636
*Type:* `+Number+`
3737
+
38-
The `iat` represents the issue timestamp, specified as the number of seconds since the Unix epoch. It indicates when the payload was generated.
38+
The `iat` represents the issue timestamp, specified as the number of seconds. For example, to set the issue time to the current timestamp, calculate the issue time as the current timestamp divided by 1000.
3939

4040
.Example
4141
[source,json]
@@ -46,7 +46,7 @@ iat: Math.floor(Date.now() / 1000), // Issue timestamp
4646
`+exp+` _(required)_::
4747
*Type:* `+Number+`
4848
+
49-
The `exp` represents the expiration timestamp, specified as the number of seconds since the Unix epoch. It determines the time after which the payload is no longer valid. For example, to set a validity period of 10 minutes, calculate the expiration time as the current timestamp plus 600 seconds.
49+
The `exp` represents the expiration timestamp, specified as the number of seconds. For example, to set a validity period of 10 minutes, calculate the expiration time as the current timestamp plus 600 seconds.
5050

5151
.Example
5252
[source,json]

0 commit comments

Comments
 (0)