Skip to content

Commit

Permalink
remove support for deprecated option
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Sep 5, 2016
1 parent 01409b3 commit b894ea2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ module.exports = function(options) {
}
}

if (typeof options.skip !== 'undefined') {
console.warn('WARN: express-jwt: options.skip is deprecated');
console.warn('WARN: use app.use(jwt(options).unless({path: \'/x\'}))');
if (options.skip.indexOf(req.url) > -1) {
return next();
}
}

if (options.getToken && typeof options.getToken === 'function') {
try {
token = options.getToken(req);
Expand Down

0 comments on commit b894ea2

Please sign in to comment.