Browse Source
Merge pull request #19568 from abpframework/auto-merge/rel-8-1/2641
Merge branch dev with rel-8.1
pull/19569/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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(); |
|
|
|
} |
|
|
|
|
|
|
|
|