Skip to content

AuthVital Documentation

AuthVital is a B2B Identity Provider platform with OAuth 2.0/OIDC compliance, multi-tenancy, role-based access control, licensing, SSO, and MFA.

📚 Documentation Index

Getting Started

Core Concepts

SDK Integration

API Reference

Administration

Security

Reference


I want to... Go to...
Get a complete integration guide Setup Guide
Integrate AuthVital into my app Quick Start Guide
Understand the OAuth flow OAuth 2.0 / OIDC Flows
Understand webhook events Event Types & Payloads
Sync users to my database Identity Sync Guide
Handle webhooks Webhooks Guide
Configure SSO SSO Configuration
Deploy to production Installation & Deployment

Architecture at a Glance

┌─────────────────────────────────────────────────────────────────────────────┐
│                              Your Application                                │
├─────────────────────────────────────────────────────────────────────────────┤
│  ┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐         │
│  │  React Client   │    │  Node.js API    │    │  Your Database  │         │
│  │  (@authvital/   │    │  (@authvital/   │    │  (User Sync)    │         │
│  │   sdk/client)   │    │   sdk/server)   │    │                 │         │
│  └────────┬────────┘    └────────┬────────┘    └────────▲────────┘         │
│           │                      │                      │                   │
│           │ OAuth Flow           │ JWT Validation       │ Webhooks          │
│           │                      │                      │                   │
└───────────┼──────────────────────┼──────────────────────┼───────────────────┘
            │                      │                      │
            ▼                      ▼                      │
┌─────────────────────────────────────────────────────────┴───────────────────┐
│                            AuthVital Platform                                │
├─────────────────────────────────────────────────────────────────────────────┤
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐    │
│  │    OAuth     │  │   Tenants    │  │  Licensing   │  │   Webhooks   │    │
│  │   Server     │  │   & Users    │  │    Engine    │  │    System    │    │
│  └──────────────┘  └──────────────┘  └──────────────┘  └──────────────┘    │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐    │
│  │     SSO      │  │     MFA      │  │    RBAC      │  │    Admin     │    │
│  │   Providers  │  │    (TOTP)    │  │   Engine     │  │    Panel     │    │
│  └──────────────┘  └──────────────┘  └──────────────┘  └──────────────┘    │
└─────────────────────────────────────────────────────────────────────────────┘

Tech Stack

Component Technology
Backend NestJS, Prisma, PostgreSQL
Frontend React, Vite, Tailwind CSS
SDK TypeScript (ESM + CJS)
Auth OAuth 2.0, OIDC, PKCE, JWT
Security bcrypt, TOTP (otplib), JOSE

Support

  • GitHub Issues: Report bugs and request features
  • SDK Package: npm install @authvital/sdk