Skip to content

Commit

Permalink
switch order
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenvandeweyer committed Aug 26, 2023
1 parent 25c3661 commit 20696ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/grant-types/authorization-code-grant-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ AuthorizationCodeGrantType.prototype.handle = function(request, client) {
return this.getAuthorizationCode(request, client);
})
.tap(function(code) {
return this.validateRedirectUri(request, code);
return this.revokeAuthorizationCode(code);
})
.tap(function(code) {
return this.revokeAuthorizationCode(code);
return this.validateRedirectUri(request, code);
})
.then(function(code) {
return this.saveToken(code.user, client, code.authorizationCode, code.scope);
Expand Down

0 comments on commit 20696ba

Please sign in to comment.