diff --git a/lib/grant-types/authorization-code-grant-type.ts b/lib/grant-types/authorization-code-grant-type.ts index 604f17956..e89badcff 100755 --- a/lib/grant-types/authorization-code-grant-type.ts +++ b/lib/grant-types/authorization-code-grant-type.ts @@ -211,7 +211,6 @@ export class AuthorizationCodeGrantType extends AbstractGrantType { authorizationCode: string, scope: string, ) { - const accessScope = await this.validateScope(user, client, scope); const accessToken = await this.generateAccessToken(client, user, scope); const refreshToken = await this.generateRefreshToken(client, user, scope); const accessTokenExpiresAt = this.getAccessTokenExpiresAt(); @@ -223,7 +222,7 @@ export class AuthorizationCodeGrantType extends AbstractGrantType { accessTokenExpiresAt, refreshToken, refreshTokenExpiresAt, - scope: accessScope, + scope, } as any; return this.model.saveToken(token, client, user);