From 7dfdba1c2a0004710ca6d7aea2f6b88da8c3ceb0 Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Mon, 26 Jan 2026 13:48:45 +0500 Subject: [PATCH] bug fix --- src/shared/config/api/httpClient.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/shared/config/api/httpClient.ts b/src/shared/config/api/httpClient.ts index f80ca2b..f0bea3b 100644 --- a/src/shared/config/api/httpClient.ts +++ b/src/shared/config/api/httpClient.ts @@ -48,7 +48,6 @@ httpClient.interceptors.response.use( if (!refToken) { removeToken(); removeRefToken(); - window.location.href = '/'; } const { data } = await axios.post( `${BASE_URL}api/v1/accounts/refresh/token/`, @@ -59,7 +58,6 @@ httpClient.interceptors.response.use( } catch { removeToken(); removeRefToken(); - window.location.href = '/'; } } else if ((error as AxiosError)?.status === 401) { try { @@ -67,7 +65,6 @@ httpClient.interceptors.response.use( if (!refToken) { removeToken(); removeRefToken(); - window.location.href = '/'; } const { data } = await axios.post( `${BASE_URL}api/v1/accounts/refresh/token/`, @@ -78,7 +75,6 @@ httpClient.interceptors.response.use( } catch { removeToken(); removeRefToken(); - window.location.href = '/'; } } return Promise.reject(error);