We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d5aae commit cd96fbcCopy full SHA for cd96fbc
src/grants/refresh_token.grant.ts
@@ -85,7 +85,9 @@ export class RefreshTokenGrant extends AbstractGrant {
85
throw OAuthException.invalidParameter("refresh_token", "Token has expired");
86
}
87
88
- refreshToken ??= await this.tokenRepository.getByRefreshToken(refreshTokenData.refresh_token_id);
+ if (!refreshToken) {
89
+ refreshToken = await this.tokenRepository.getByRefreshToken(refreshTokenData.refresh_token_id);
90
+ }
91
92
if (await this.tokenRepository.isRefreshTokenRevoked(refreshToken)) {
93
throw OAuthException.invalidParameter("refresh_token", "Token has been revoked");
0 commit comments