Kavach Documentation
Drop-in authentication for SvelteKit — one unified API across all platforms, declarative route protection, and pre-built UI components.
Get started
Choose an adapter
LIVE
Supabase
Postgres-powered auth with row-level security
Email + passwordMagic link (OTP)Social OAuth
LIVE
Firebase
Google cloud auth with Firestore security rules
Email + passwordMagic link (OTP)Google OAuth
LIVE
Convex
Reactive database with built-in auth
Google OAuthReactive data queriesServer-side auth functions
WIP
Auth0
Auth-as-a-service with universal login
Universal login pageSocial providersToken-based sessions
WIP
Amplify
AWS Cognito with Amplify SDK
Cognito user poolsSocial identity providersAWS IAM integration
What Kavach provides
Role-based route protection
Declare rules once in config — no scattered auth checks
Server-side session cookies
Secure httpOnly cookies, no client-side token exposure
Platform agnostic API
Swap adapters without touching your app code
Pre-built UI components
AuthPage, AuthProvider, login flows ready to use
Installation
npm install kavach @kavach/sentry @kavach/ui