fix: don't try update if token is not found
This commit is contained in:
parent
8a584fd28a
commit
c945a1016b
@ -34,7 +34,7 @@ export class TokenRefreshService {
|
||||
this.authService.refreshToken()
|
||||
.pipe(
|
||||
catchError(error => {
|
||||
if (error.status === 403 || error.status === 401) {
|
||||
if (error.status === 403 || error.status === 401 || !localStorage.getItem(ApiService.tokenKey)) {
|
||||
localStorage.removeItem(ApiService.tokenKey);
|
||||
this.refreshTokenExpireMs = -1;
|
||||
return of(undefined);
|
||||
|
Loading…
Reference in New Issue
Block a user