This commit is contained in:
Samandar Turgunboyev
2025-12-19 16:42:19 +05:00
parent 5f14379a3e
commit e67a4846e7

View File

@@ -29,6 +29,7 @@ httpClient.interceptors.response.use(
async (error) => {
if (error.response?.status === 401) {
Cookies.remove('panda_admin');
window.location.href = '/login';
}
return Promise.reject(error);