diff --git a/src/utils/axiosInstance.jsx b/src/utils/axiosInstance.jsx index ecb3faf..9141315 100644 --- a/src/utils/axiosInstance.jsx +++ b/src/utils/axiosInstance.jsx @@ -45,6 +45,7 @@ axiosInstance.interceptors.response.use( originalRequest.headers.Authorization = newAccessToken; return axiosInstance(originalRequest); } catch (err) { + window.location.href = '/login'; return Promise.reject(err); } }else if (error.response.status === undefined) {