@bolkauth/react provides client-side auth state and headless hooks. It does not ship UI components.
Provider
Wrap the part of your app that needs auth state:
baseURL must match the path where bolkAuthHandler(auth) is mounted.
Hooks
| Hook | Use it for |
|---|---|
useAuth() | Fast auth state: loaded, signed-in, user ID, and session ID. |
useUser() | Current user object and a reload() function. |
useSession() | Current session object. |
useSignIn() | Email/password sign-in. |
useSignUp() | Email/password registration. |
useOAuth() | Provider redirects such as GitHub or Google. |
useOTP() | Email one-time password send and verify flow. |
useMagicLink() | Email magic-link request flow. |
useOnboarding() | Client state plus persistence for onboarding steps. |
useUserMetadata() | Read and update user metadata records. |