diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index a306b1e..7143050 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -544,7 +544,7 @@ "dotenv": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.0.0.tgz", - "integrity": "sha1-7TEMFltOipe7dFsKnZnDG9pWZEA=" + "integrity": "sha512-30xVGqjLjiUOArT4+M5q9sYdvuR4riM6yK9wMcas9Vbp6zZa+ocC9dp6QoftuhTPhFAiLK/0C5Ni2nou/Bk8lg==" }, "ecc-jsbn": { "version": "0.1.2", diff --git a/oauth/index.js b/oauth/index.js index 64746a2..27b8a4c 100644 --- a/oauth/index.js +++ b/oauth/index.js @@ -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) { @@ -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);