Skip to main content

Get started in three steps

Follow these steps to integrate AuthOS into your application.

Step 1: Install the client library

Install the AuthOS React library (or use our API directly).
npm install @authos/react

Step 2: Initialize AuthOS

Wrap your application with the AuthOSProvider and provide your publishable key.
import { AuthOSProvider } from '@authos/react';

function App() {
  return (
    <AuthOSProvider publishableKey="your_publishable_key">
      <YourApp />
    </AuthOSProvider>
  );
}

Step 3: Use Auth components

Add pre-built components for Sign In and Sign Up.
import { SignIn, SignUp } from '@authos/react';

function AuthPage() {
  return (
    <div>
      <SignIn />
      <SignUp />
    </div>
  );
}

Next steps

Explore these key features of AuthOS: