diff --git a/README.md b/README.md index a7185ec..d51f9fd 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ Argument | Type | Satus | Default | Description ----------- | -------- | -------- | ------- | ----------- `token` | `string` | required | - | The token string generated by `jwt.sign()`. `secret` | `string` | required | - | The string which was used to sign the payload. -`algorithm` | `object`, `string` | optional | `{ algorithm: 'HS256' }` | The options object supporting `algorithm` or just the algorithm string. (See [Available Algorithms](#available-algorithms)) +`algorithm` | `object`, `string` | optional | `{ algorithm: 'HS256', throwError: false }` | The options object supporting `algorithm` or just the algorithm string. (See [Available Algorithms](#available-algorithms)) #### `return` Returns `true` if signature, `nbf` (if set) and `exp` (if set) are valid, otherwise returns `false`.