diff --git a/src/api/api.service.ts b/src/api/api.service.ts index fb44476..040c0c4 100644 --- a/src/api/api.service.ts +++ b/src/api/api.service.ts @@ -68,7 +68,7 @@ export default abstract class ApiService { body: request.data, }).pipe( catchError(error => { - if (!secondTry && error.status === 401) + if (request.needAuth && !secondTry && error.status === 401) return this.handle401Error(error).pipe( switchMap(() => this.sendHttpRequest(method, request, true)) );