This commit is contained in:
efrilm 2025-09-18 11:00:00 +07:00
parent fdcb0e12f4
commit 97ed613cc6

View File

@ -31,7 +31,7 @@ api.interceptors.response.use(
error => {
const status = error.response?.status
if (status === 401 && !currentPath.endsWith('/login')) {
if (status === 401) {
localStorage.removeItem('user')
localStorage.removeItem('authToken')
window.location.href = '/login'