This commit is contained in:
2026-01-15 13:16:38 -06:00
parent 589269c881
commit adae53fb06
4 changed files with 100 additions and 78 deletions
-9
View File
@@ -37,18 +37,9 @@ apiClient.interceptors.response.use(
Cookies.remove("token");
Cookies.remove("user");
if (
typeof window !== "undefined" &&
!window.location.pathname.includes("/")
) {
window.location.href = "/";
}
}
if (status === 403) {
if (typeof window !== "undefined") {
window.location.href = "/Impresiones";
}
}
}
return Promise.reject(error);