Skip to main content

Auth Components

The auth module provides UI and hooks for sign-in, registration, password recovery, profile editing, and session management. Its client-backed components use the OvokClient from the nearest OvokProvider. Your app owns routes, post-auth navigation, and the policies that determine who may sign in or edit an account.

Choose a guide​

FeatureWhat it covers
Sign-inEmail and password, Google and Apple sign-in, MFA verification, and screen composition
RegistrationAccount creation, registration form components, and examples
Password resetPassword recovery form and its component parts
Profile formEditing the signed-in user's Patient profile
Session managementCurrent profile state and server-side sessions
Logout buttonEnding the current authenticated session
Delete account buttonConfirming account deletion and handling its result
Auth hooks and rate limitsSession hooks and rate-limit helpers for custom forms

Each guide links to the component-level reference for its form parts and props. You can also open any feature from the Auth Components sidebar section.

Integration model​

Mount auth components below the providers described in the app shell guide. Built-in forms submit through the active client. When you supply a custom onSubmit, that handler replaces the component's default request and session behavior; the host app must provide those pieces itself.

Keep the tenant code in public app configuration. It is client-visible configuration, not a credential. Configure Google and Apple native packages only when the app offers those providers; see the installation guide.

Next steps​