update
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-24 12:58:08 +03:30
parent 74fec3d2be
commit 8563508674
4 changed files with 15 additions and 5 deletions
+2
View File
@@ -1,5 +1,6 @@
import { create } from "zustand";
import { getToken, removeRefreshToken, removeToken } from "./func";
import { useAuthStore } from "@/pages/auth/store/AuthStore";
type SessionAuthStore = {
isAuthenticated: boolean;
@@ -14,6 +15,7 @@ export const useSessionAuth = create<SessionAuthStore>((set) => ({
removeToken();
removeRefreshToken();
window.isRefreshTokenExpired = false;
useAuthStore.getState().reset();
set({ isAuthenticated: false });
},
}));