Skip to content

Commit 69cdd2c

Browse files
Fix generateAuthorizationCode not being awaited
1 parent cc643fe commit 69cdd2c

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
@@ -93,7 +93,7 @@ AuthorizeHandler.prototype.handle = async function(request, response) {
9393

9494
const requestedScope = this.getScope(request);
9595
const validScope = await this.validateScope(user, client, requestedScope);
96-
const authorizationCode = this.generateAuthorizationCode(client, user, validScope);
96+
const authorizationCode = await this.generateAuthorizationCode(client, user, validScope);
9797

9898
const ResponseType = this.getResponseType(request);
9999
const codeChallenge = this.getCodeChallenge(request);

0 commit comments

Comments
 (0)