Skip to content

Commit 7a01f87

Browse files
nkzawathomseddon
authored andcommitted
set numArgs for promisify of generateAuthorizationCode
1 parent 3ab54bd commit 7a01f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/authorize-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ AuthorizeHandler.prototype.handle = function(request, response) {
135135

136136
AuthorizeHandler.prototype.generateAuthorizationCode = function(client, user, scope) {
137137
if (this.model.generateAuthorizationCode) {
138-
return promisify(this.model.generateAuthorizationCode).call(this.model, client, user, scope);
138+
return promisify(this.model.generateAuthorizationCode, 3).call(this.model, client, user, scope);
139139
}
140140
return tokenUtil.generateRandomToken();
141141
};

0 commit comments

Comments
 (0)