Stack Auth: The Open-Source Auth Platform
Stack Auth is a managed user authentication solution that’s developer-friendly and fully open-source (licensed under MIT and AGPL). Get started in just five minutes and scale as your project grows.Quick Start
Get authentication running in your Next.js app in under 5 minutes
Installation
Detailed installation instructions for Next.js, React, and JavaScript
API Reference
Complete REST API documentation for custom integrations
Components
Pre-built UI components for sign-in, sign-up, and account settings
Why Stack Auth?
Stack Auth combines the best of both worlds: the convenience of a managed service with the freedom of open-source software.Fully Open Source
MIT and AGPL licensed. Export your user data and self-host at any time, for free.
Developer-Friendly
Idiomatic Next.js APIs built on server components, React hooks, and route handlers.
Production-Ready
Complete authentication and user management out of the box.
Key Features
Authentication Components
Pre-built<SignIn/> and <SignUp/> components that support:
- OAuth - Google, GitHub, Microsoft, and more with shared development keys
- Password credentials - Traditional email/password authentication
- Magic links - Passwordless email authentication
- Passkeys - Biometric and security key authentication
- Dark/light mode - Automatic theme support
User Management
User Dashboard
Filter, analyze, and edit users. Replaces the first internal tool you’d build.
Account Settings
Let users update profiles, verify emails, and change passwords - zero setup required.
Multi-Tenancy & Teams
B2B customer management with organizations that scale to millions.
Role-Based Access Control
Define permission graphs and assign to users. Org-specific roles supported.
Advanced Features
- OAuth Connections - Manage access tokens for third-party APIs (Google Calendar, Outlook, etc.)
- Webhooks - Get notified when users interact with your product (built on Svix)
- Automatic Emails - Customizable emails for sign-up, password reset, and verification
- JWT Handling - Automatic management of refresh tokens, access tokens, and cookies
- M2M Authentication - Short-lived access tokens for machine-to-machine communication
- User Impersonation - Debug and support by logging in as users
Framework Support
What Makes Stack Auth Different?
Ask yourself about other auth solutions:- Is it open-source?
- Is it developer-friendly, well-documented, and lets you get started in minutes?
- Does it do authentication, authorization, and user management?
Get Started
5-Minute Quickstart
Follow our quickstart guide to add authentication to your Next.js app
View Demo
See Stack Auth in action with our live demo application
Stack Auth’s managed service is completely optional. You can export your user data and self-host for free at any time.