Skip to content

Commit

Permalink
Remove scope validation oauthjs#647
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdogo committed Oct 10, 2020
1 parent 1895197 commit 95ec3ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/grant-types/authorization-code-grant-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -223,7 +222,7 @@ export class AuthorizationCodeGrantType extends AbstractGrantType {
accessTokenExpiresAt,
refreshToken,
refreshTokenExpiresAt,
scope: accessScope,
scope,
} as any;

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

0 comments on commit 95ec3ea

Please sign in to comment.