Skip to content

Commit

Permalink
Add js formatting to extractor example in README.
Browse files Browse the repository at this point in the history
See PR #171.  The PR attempted to make style match but left out the
space between the paren and the curly bracket.
  • Loading branch information
mikenicholson committed Mar 16, 2019
1 parent f204437 commit 499bd4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ If the supplied extractors don't meet your needs you can easily provide your own
example, if you are using the cookie-parser middleware and want to extract the JWT in a cookie
you could use the following function as the argument to the jwtFromRequest option:

```
```js
var cookieExtractor = function(req) {
var token = null;
if (req && req.cookies)
{
if (req && req.cookies) {
token = req.cookies['jwt'];
}
return token;
Expand Down

0 comments on commit 499bd4a

Please sign in to comment.