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