Skip to content

Commit

Permalink
Add docs about numeric date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ziluvatar committed Mar 21, 2017
1 parent 2ec4960 commit 659f731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ If `payload` is not a buffer or a string, it will be coerced into a string using

There are no default values for `expiresIn`, `notBefore`, `audience`, `subject`, `issuer`. These claims can also be provided in the payload directly with `exp`, `nbf`, `aud`, `sub` and `iss` respectively, but you can't include in both places.

Remember that `exp`, `nbf` and `iat` are **NumericDate**, see related [Token Expiration (exp claim)](#token-expiration-exp-claim)


The header can be customized via the `option.header` object.

Expand Down

0 comments on commit 659f731

Please sign in to comment.