This repository was archived by the owner on Mar 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ Serializes and signs the payload as a PASETO using the provided private key.
50
50
- ` key ` : ` <KeyObject> ` The key to sign with. Alternatively a ` 'k4.secret.[data]' `
51
51
PASERK string, any input that works for ` crypto.createPrivateKey() ` , or ` V4.bytesToKeyObject() ` .
52
52
- ` options ` : ` <Object> `
53
+ - ` assertion ` : ` <string> ` &vert ; ` <Buffer> ` PASETO Implicit Assertion
53
54
- ` audience ` : ` <string> ` PASETO Audience, "aud" claim value, if provided it will replace
54
55
"aud" found in the payload
55
56
- ` expiresIn ` : ` <string> ` PASETO Expiration Time, "exp" claim value, specified as string which is
@@ -106,6 +107,7 @@ Verifies the claims and signature of a PASETO
106
107
- ` key ` : ` <KeyObject> ` The key to verify with. Alternatively a ` 'k4.public.[data]' `
107
108
PASERK string, any input that works for ` crypto.createPublicKey() ` or ` V4.bytesToKeyObject() ` .
108
109
- ` options ` : ` <Object> `
110
+ - ` assertion ` : ` <string> ` &vert ; ` <Buffer> ` PASETO Implicit Assertion
109
111
- ` audience ` : ` <string> ` Expected audience value. An exact match must be found in the payload.
110
112
- ` clockTolerance ` : ` <string> ` Clock Tolerance for comparing timestamps, provided as timespan
111
113
string e.g. ` 120s ` , ` 2 minutes ` , etc. ** Default:** no clock tolerance
You can’t perform that action at this time.
0 commit comments