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()
 | 
			
		||||
      .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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user