This commit is contained in:
JIANG
2026-02-11 18:58:10 +08:00
parent 9d06226cb4
commit 66f2390078
13 changed files with 307 additions and 62 deletions
+11
View File
@@ -0,0 +1,11 @@
import { create } from "zustand";
interface AuthState {
accessToken: string | null;
setAccessToken: (token: string | null) => void;
}
export const useAuthStore = create<AuthState>((set) => ({
accessToken: null,
setAccessToken: (token) => set({ accessToken: token }),
}));