diff --git a/lib/exchange/password.js b/lib/exchange/password.js index aae08c34..c1120ab4 100644 --- a/lib/exchange/password.js +++ b/lib/exchange/password.js @@ -125,7 +125,9 @@ module.exports = function(options, issue) { try { var arity = issue.length; - if (arity == 7) { + if(arity == 8){ + issue(client, username, passwd, scope, req.body, req.authInfo, req, issued); + } else if (arity == 7) { issue(client, username, passwd, scope, req.body, req.authInfo, issued); } else if (arity == 6) { issue(client, username, passwd, scope, req.body, issued);