Browse Source

update refresh token logic in initial time

pull/19567/head
Sinan997 2 years ago
parent
commit
4329c14051
  1. 2
      npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts

2
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();
}

Loading…
Cancel
Save