Skip to content

Commit 95ec3ea

Browse files
committed
Remove scope validation oauthjs#647
1 parent 1895197 commit 95ec3ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ export class AuthorizationCodeGrantType extends AbstractGrantType {
211211
authorizationCode: string,
212212
scope: string,
213213
) {
214-
const accessScope = await this.validateScope(user, client, scope);
215214
const accessToken = await this.generateAccessToken(client, user, scope);
216215
const refreshToken = await this.generateRefreshToken(client, user, scope);
217216
const accessTokenExpiresAt = this.getAccessTokenExpiresAt();
@@ -223,7 +222,7 @@ export class AuthorizationCodeGrantType extends AbstractGrantType {
223222
accessTokenExpiresAt,
224223
refreshToken,
225224
refreshTokenExpiresAt,
226-
scope: accessScope,
225+
scope,
227226
} as any;
228227

229228
return this.model.saveToken(token, client, user);

0 commit comments

Comments
 (0)