Function: AuthProvider()¶
AuthProvider(
children):Element
Defined in: src/auth/AuthContext.tsx:80
Auth Provider
React context provider component that manages authentication state for the entire application. Should wrap the root of the component tree.
Automatically checks authentication on mount by calling GET /api/auth/me. Provides login, logout, and reload methods to child components via useAuth hook.
Parameters¶
children¶
Child components that will have access to auth context
children¶
ReactNode
Returns¶
Element