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
+1
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ encoded private key for RSA and ECDSA. In case of a private key with passphrase
42
42
*`noTimestamp`
43
43
*`header`
44
44
*`keyid`
45
+
*`mutatePayload`: if true, the sign function will modify the payload object directly. This is useful if you need a raw reference to the payload after claims have been applied to it but before it has been encoded into a token.
45
46
46
47
If `payload` is not a buffer or a string, it will be coerced into a string using `JSON.stringify`.
it('should return an error if the secret is falsy and algorithm is not set to none: '+(typeofsecret==='string' ? '(empty string)' : secret),function(done){
0 commit comments