---
title: "AuthSetu Documentation"
description: "Production-ready Indian identity verification, authentication, KYC, and digital locker infrastructure."
order: 0
category: "Overview"
updated: "2026-10-13"
---

# 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

- **Developer Experience**: Modern Next.js App Router and React SDKs with zero-boilerplate setup.
- **Enterprise Security**: Argon2id password hashing, RFC 9106 compliance, WebAuthn Passkeys, TOTP MFA, and scoped API keys.
- **India Stack Ready**: DigiLocker OAuth2 consent flows, Aadhaar XML/OTP compliance, instant PAN & GSTIN business validation.
- **Performance**: Go Chi backend with sub-5ms token verification, Redis-backed rate limiting, and River background jobs.
- **Data Residency**: Strict on-soil Indian data residency ensuring zero cross-border leakage.

## 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:

```mermaid
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:

```bash
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>`.
