complete login

This commit is contained in:
Alihaghighattalab
2024-08-13 09:46:52 +03:30
parent 3fe7f5a2df
commit 4a93066255
13 changed files with 154 additions and 610 deletions
+11
View File
@@ -0,0 +1,11 @@
import create from 'zustand';
interface AuthState {
token: string | null;
setToken: (token: string | null) => void;
}
export const useAuthStore = create<AuthState>((set) => ({
token: null,
setToken: (token) => set({ token }),
}));