Function: useAuth()¶
useAuth():
AuthContextType
Defined in: src/context/AuthContext.tsx:454
Hook to access AuthContextType.
Returns¶
The current authentication context.
Remarks¶
Must be used within an AuthProvider. Throws an error otherwise.
Example¶
const { user, loginUser, logoutUser } = useAuth();