Merge pull request #8027 from abpframework/fix/8010

Angular UI: Handled the refresh token error to resolve app launch problem
pull/8052/head
Mehmet Erim 5 years ago committed by GitHub
commit edcd30fbed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,7 @@ export class AuthCodeFlowStrategy extends AuthFlowStrategy {
return Promise.resolve();
}
return this.oAuthService.refreshToken() as Promise<any>;
return this.oAuthService.refreshToken().catch(() => clearOAuthStorage());
})
.then(() => this.oAuthService.setupAutomaticSilentRefresh({}, 'access_token'));
}

Loading…
Cancel
Save