diff --git a/src/services/hooks/useAuth.tsx b/src/services/hooks/useAuth.tsx index 012badfa..86bf43ed 100644 --- a/src/services/hooks/useAuth.tsx +++ b/src/services/hooks/useAuth.tsx @@ -1,5 +1,5 @@ import { create } from 'zustand'; -import { UserWithRoles } from '@/types/api'; +import { UserWithRoles } from '@/types/api/api-general'; type AuthStore = { user?: UserWithRoles; @@ -16,10 +16,12 @@ const useAuthStore = create()((set) => ({ })); export const useAuth = () => { - const { user, setUser } = useAuthStore(); + const { user, setUser, isLoadingUser, setIsLoadingUser } = useAuthStore(); return { user, setUser, + isLoadingUser, + setIsLoadingUser, }; };