React and Next.js adapter for AuthOS.
Install
npm install @drmhse/authos-react
Quick start
import { AuthOSProvider, SignIn } from '@drmhse/authos-react';
<AuthOSProvider config={{ baseURL: 'http://localhost:3001' }}>
<SignIn />
</AuthOSProvider>
For Next.js client components:
NEXT_PUBLIC_AUTHOS_URL=http://localhost:3001
<AuthOSProvider config={{ baseURL: process.env.NEXT_PUBLIC_AUTHOS_URL! }}>
{children}
</AuthOSProvider>
Canonical docs
- Package README in the repo
- AI Agent Skills
- SDK reference
- Authentication guides