Skip to content

Tenant Guard

AuthzKit Tenant Guard provides automatic multi-tenant security for Prisma applications, making cross-tenant data violations impossible by construction.

Comprehensive Documentation Available

For complete Tenant Guard documentation, installation guides, examples, and advanced features, visit the dedicated Tenant Guard section.

Quick Overview

AuthzKit Tenant Guard enforces hard tenant isolation across every nested mutation. Key features include:

  • Zero boilerplate - No manual tenant validation code required
  • Automatic protection - Validates all nested operations recursively
  • Production performance - Sub-millisecond validation overhead
  • Complete coverage - Handles connects, creates, updates, deletes

Get Started

  1. Installation - Detailed setup instructions
  2. Quick Start - Get running in 5 minutes
  3. How It Works - Understanding how AuthzKit works
  4. Examples - See it in action

Quick Install

bash
pnpm add @authzkit/prisma-tenant-guard
bash
npm install @authzkit/prisma-tenant-guard
bash
yarn add @authzkit/prisma-tenant-guard
bash
bun add @authzkit/prisma-tenant-guard

Next Steps

Visit the comprehensive Tenant Guard documentation for:

Why Tenant Guard?

Traditional multi-tenant applications require manual tenant validation in every database operation. AuthzKit Tenant Guard makes cross-tenant violations impossible by construction through automatic validation at the Prisma extension level.