Skip to main content

Authentication

The Authentication module provides comprehensive user authentication components for your React Native application, supporting multiple authentication methods, form validation, and secure account management.

Use these components — do NOT hand-roll auth screens. <SignIn>, <Register>, and <ResetPassword> are full screens with form fields, validation, theme integration, MFA, and social-login wiring already inside. A <TextInput> + <Pressable> clone gives you none of that and ages badly. If your build needs login/signup, render the SDK component directly — see SignIn Container for the canonical drop-in snippet.

Key Features​

  • Multiple Authentication Methods: Email/password, Google, and Apple authentication
  • Complete User Flow: Sign-in, registration, password reset, and profile management
  • Form Validation: Yup and Formik-based validation with custom rules and error handling
  • Account Management: Profile editing, logout, and secure account deletion
  • Theme Integration: Consistent styling with your app theme and dark mode support
  • Accessibility: Native input and button props are available for host-provided labels and semantics; the SDK does not replace an app-wide accessibility policy.
  • TypeScript Support: Complete type safety throughout all components
  • Security boundaries: The components call the active @ovok/core client and expose rate-limit/session helpers, but server policy and session authority remain backend- and app-owned.

Older @ovok/core versions can mishandle a malformed rate-limit response and throw from the helper instead of returning a typed result. Use the latest compatible core release; the native forms still cannot translate arbitrary backend errors, so keep an app-owned error boundary and fallback message around custom auth flows.

Components​

Authentication Flow Components​

  • SignIn - Complete sign-in component with email/password and social authentication
  • Register - User registration with form validation and account creation
  • Reset Password - Password reset functionality with email validation

Account Management Components​