Skip to content

Commit

Permalink
Document NotBeforeError (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
bploetz authored and ziluvatar committed Oct 10, 2018
1 parent 683d8a9 commit 29cd654
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Expand Up @@ -298,6 +298,30 @@ jwt.verify(token, 'shhhhh', function(err, decoded) {
});
```

### NotBeforeError
Thrown if current time is before the nbf claim.

Error object:

* name: 'NotBeforeError'
* message: 'jwt not active'
* date: 2018-10-04T16:10:44.000Z

```js
jwt.verify(token, 'shhhhh', function(err, decoded) {
if (err) {
/*
err = {
name: 'NotBeforeError',
message: 'jwt not active',
date: 2018-10-04T16:10:44.000Z
}
*/
}
});
```


## Algorithms supported

Array of supported algorithms. The following algorithms are currently supported.
Expand Down

0 comments on commit 29cd654

Please sign in to comment.