Skip to content

Commit

Permalink
fix response code bug with jwt
Browse files Browse the repository at this point in the history
Update npm-shrinkwrap
  • Loading branch information
indraneeldey committed Aug 15, 2019
1 parent 2e99c7a commit fda571f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions oauth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ module.exports.init = function(config, logger, stats) {
return next();
} else {
debug('invalid token');
return sendError(req, res, next, logger, stats,'access_denied', 'invalid_token');
return sendError(req, res, next, logger, stats, 'invalid_token', 'invalid_token');
}
} else {
if (tokenvalue === null || tokenvalue === undefined) {
Expand Down Expand Up @@ -282,7 +282,7 @@ module.exports.init = function(config, logger, stats) {
return next();
} else {
debug('invalid token');
return sendError(req, res, next, logger, stats,'access_denied', 'invalid_token');
return sendError(req, res, next, logger, stats, 'invalid_token', 'invalid_token');
}
} else {
authorize(req, res, next, logger, stats, decodedToken.payloadObj, apiKey);
Expand Down

0 comments on commit fda571f

Please sign in to comment.