AuthSetu Documentation
Welcome to **AuthSetu** — the high-performance, developer-first authentication and Indian identity verification platform developed by InfoSkills Technology Pvt Ltd.
AuthSetu provides prebuilt UI components for React and Next.js, a robust Go backend engine, and deep integration with India Stack services including DigiLocker, PAN, Driving Licence, and GSTIN verification.
Core Features
Choose Your Path
<CardGrid>
<Card title="Quickstart" href="/docs/getting-started/quickstart" description="Integrate AuthSetu into your application in under 5 minutes." />
<Card title="Next.js SDK" href="/docs/getting-started/nextjs" description="App Router middleware, AuthProvider, and server-side session utilities." />
<Card title="Prebuilt UI" href="/docs/components/sign-in" description="Drop-in SignIn, SignUp, and UserButton components." />
<Card title="India Core" href="/docs/data-core/overview" description="Instant lookup for Indian cities, PIN codes, and identity numbers." />
</CardGrid>
Architecture at a Glance
AuthSetu operates on a modular, multi-tenant architecture designed to scale seamlessly:
graph TD
Client[Web & Mobile Clients] -->|HTTPS| Proxy[AuthSetu Edge Proxy / Next.js]
Proxy -->|API Requests| API[Go Backend API (Chi Router)]
API -->|Auth & Tenancy| PG[(PostgreSQL with pgx)]
API -->|Caching & Throttling| Redis[(Redis Cluster)]
API -->|Async Jobs| Worker[River Background Worker]
Worker -->|Identity Verification| DigiLocker[DigiLocker & Government Providers]
Quick Installation
Install the Next.js SDK via your favorite package manager:
pnpm add @authsetu/nextjs @authsetu/react
Next, check out the [Quickstart Guide](/docs/getting-started/quickstart) to configure your environment variables and mount your first `<AuthProvider>`.