Skip to content

Commit 91417dd

Browse files
committedMar 6, 2015
Merge pull request #57 from drichard/patch-1
Update README to document the headers option.
2 parents 1bfedf5 + ff19d44 commit 91417dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ encoded private key for RSA and ECDSA.
3030
* `subject`
3131
* `issuer`
3232
* `noTimestamp`
33+
* `headers`
3334

3435
If `payload` is not a buffer or a string, it will be coerced into a string
3536
using `JSON.stringify`.
3637

37-
If any `expiresInMinutes`, `audience`, `subject`, `issuer` are not provided, there is no default. The jwt generated won't include those properties in the payload.
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.
39+
40+
Additional headers can be provided via the `headers` object.
3841

3942
Generated jwts will include an `iat` claim by default unless `noTimestamp` is specified.
4043

0 commit comments

Comments
 (0)
Please sign in to comment.