Revert "sadasd"

This reverts commit 9f85ce4f52.
This commit is contained in:
alorig
2025-12-09 00:26:01 +05:00
parent 9f85ce4f52
commit 92d16c76a7
11 changed files with 198 additions and 774 deletions

View File

@@ -35,7 +35,6 @@ interface AuthState {
refreshToken: string | null;
isAuthenticated: boolean;
loading: boolean;
_hasHydrated: boolean; // Track if persist has completed rehydration
// Actions
login: (email: string, password: string) => Promise<void>;
@@ -45,7 +44,6 @@ interface AuthState {
setToken: (token: string | null) => void;
refreshToken: () => Promise<void>;
refreshUser: () => Promise<void>;
setHasHydrated: (hasHydrated: boolean) => void;
}
export const useAuthStore = create<AuthState>()(
@@ -55,7 +53,6 @@ export const useAuthStore = create<AuthState>()(
token: null,
isAuthenticated: false,
loading: false, // Always start with loading false - will be set true only during login/register
_hasHydrated: false, // Will be set to true after persist rehydration completes
login: async (email, password) => {
set({ loading: true });