Skip to content

Commit

Permalink
Detail explicitly middleware's options in README
Browse files Browse the repository at this point in the history
  • Loading branch information
madarche authored and sdd committed May 21, 2020
1 parent d7f9678 commit fa27b12
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,20 @@ should match the following interface:
* Your custom token resolver
* @this The ctx object passed to the middleware
*
* @param {object} opts The middleware's options
* @param {Object} opts The middleware's options
* @return {String|null} The resolved token or null if not found
*/
```

opts, the middleware's options:

* getToken
* secret
* key
* isRevoked
* passthrough
* debug

The resolution order for the token is the following. The first non-empty token resolved will be the one that is verified.

* `opts.getToken` function.
Expand Down

0 comments on commit fa27b12

Please sign in to comment.