Hooks
This section provides a detailed API reference for the React hooks provided by the @archibald/auth package. These hooks are the primary way to interact with the authentication system in your components.
Sections
useUser: Access the current user's profile and authentication state.useLogin: Handle the user login process and its associated states.useLogOut: Handle the user logout process.useIsLoggedIn: A lightweight hook to check the current authentication status.useSessionClient: Low-level access to the rawSessionClientinstance.
Deep Dives
- SSR Hydration: Learn how session state is transferred from server to client during initial render.