Skip to content

Commit 84d032a

Browse files
committed
Merge branch 'master' into release-4.3.0
2 parents 7a1b167 + c533607 commit 84d032a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/grant-types/authorization-code-grant-type.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ AuthorizationCodeGrantType.prototype.handle = function(request, client) {
6767
return this.getAuthorizationCode(request, client);
6868
})
6969
.tap(function(code) {
70-
return this.validateRedirectUri(request, code);
70+
return this.revokeAuthorizationCode(code);
7171
})
7272
.tap(function(code) {
73-
return this.revokeAuthorizationCode(code);
73+
return this.validateRedirectUri(request, code);
7474
})
7575
.then(function(code) {
7676
return this.saveToken(code.user, client, code.authorizationCode, code.scope);

0 commit comments

Comments
 (0)