This commit is contained in:
2025-06-09 23:36:48 +02:00
parent 42408816f4
commit 301687a609
3 changed files with 4 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ export const useAuthStore = create(
(error.response && error.response.status === 401) ||
error.response.status === 403
) {
console.warn(error.response.data);
set({ user_id: null, token: null, isLoading: false });
delete axios.defaults.headers.common["Authorization"];
router.replace("/login");