diff --git a/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts b/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts index 1417fb7825..dd7958b023 100644 --- a/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts +++ b/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts @@ -83,7 +83,7 @@ export abstract class AuthFlowStrategy { .loadDiscoveryDocument() .then(() => { const isTokenExpire = isTokenExpired(this.oAuthService.getAccessTokenExpiration()); - if (!isTokenExpire || this.oAuthService.getRefreshToken()) { + if (isTokenExpire && this.oAuthService.getRefreshToken()) { return this.refreshToken(); }