zautha
React SDK

React SDK

Hooks, components, and HOCs for adding authentication to React applications.

The @zautha/react package provides everything you need to add authentication to a React application:

  • ProviderZauthaProvider context that manages auth state
  • HooksuseAuth, useUser for accessing auth state
  • ComponentsSignIn, SignUp, UserButton pre-built UI
  • HOCwithAuth for protecting routes

Installation

npm install @zautha/sdk @zautha/react

Packages

PackageDescription
@zautha/sdkCore JavaScript/TypeScript SDK (framework-agnostic)
@zautha/reactReact hooks and pre-built components

The React SDK depends on @zautha/sdk — install both.

On this page