Skip to content

Commit

Permalink
set numArgs for promisify of generateAuthorizationCode
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa authored and thomseddon committed Jun 30, 2020
1 parent 3ab54bd commit 7a01f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlers/authorize-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ AuthorizeHandler.prototype.handle = function(request, response) {

AuthorizeHandler.prototype.generateAuthorizationCode = function(client, user, scope) {
if (this.model.generateAuthorizationCode) {
return promisify(this.model.generateAuthorizationCode).call(this.model, client, user, scope);
return promisify(this.model.generateAuthorizationCode, 3).call(this.model, client, user, scope);
}
return tokenUtil.generateRandomToken();
};
Expand Down

0 comments on commit 7a01f87

Please sign in to comment.