You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,15 @@ encoded private key for RSA and ECDSA.
29
29
*`audience`
30
30
*`subject`
31
31
*`issuer`
32
+
*`jwtid`
33
+
*`subject`
32
34
*`noTimestamp`
33
35
*`headers`
34
36
35
37
If `payload` is not a buffer or a string, it will be coerced into a string
36
38
using `JSON.stringify`.
37
39
38
-
If any `expiresInMinutes`, `audience`, `subject`, `issuer` are not provided, there is no default. The jwt generated won't include those properties in the payload.
40
+
If any `expiresInMinutes`, `audience`, `subject`, `issuer`, `jwtid`, `subject` are not provided, there is no default. The jwt generated won't include those properties in the payload.
39
41
40
42
Additional headers can be provided via the `headers` object.
(Asynchronous) If a callback is supplied, function acts asynchronously. Callback passed the payload decoded if the signature (and optionally expiration, audience, issuer) are valid. If not, it will be passed the error.
@@ -77,6 +81,8 @@ encoded public key for RSA and ECDSA.
77
81
*`audience`: if you want to check audience (`aud`), provide a value here
78
82
*`issuer`: if you want to check issuer (`iss`), provide a value here
79
83
*`ignoreExpiration`: if `true` do not validate the expiration of the token.
84
+
*`jwtid`: if you want to check JWT ID (`jti`), provide a value here
85
+
*`subject`: if you want to check subject (`sub`), provide a value here
0 commit comments