From 8797e546e20e0cdd3911e2fdd185db2e0af9c85d Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sat, 4 Jun 2022 17:43:11 +0200 Subject: [PATCH] Update docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c9dc48..5512b59 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,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. -`options` | `object`, `string` | optional | `{ algorithm: 'HS256', throwError: false }` | The options object supporting `algorithm` or just the algorithm string. (See [Available Algorithms](#available-algorithms)) +`options` | `object`, `string` | optional | `{ algorithm: 'HS256', throwError: false }` | The options object supporting `algorithm` and `throwError`. (See [Available Algorithms](#available-algorithms)) #### `throws` If `options.throwError` is `true` and the token is invalid, an error will be thrown.