Skip to content

Commit 0f8c792

Browse files
revoke code before validating redirect uri
1 parent f460371 commit 0f8c792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class AuthorizationCodeGrantType extends AbstractGrantType {
5353
}
5454

5555
const code = await this.getAuthorizationCode(request, client);
56-
await this.validateRedirectUri(request, code);
5756
await this.revokeAuthorizationCode(code);
57+
await this.validateRedirectUri(request, code);
5858

5959
return this.saveToken(code.user, client, code.authorizationCode, code.scope);
6060
}

0 commit comments

Comments
 (0)