Stack-auth
by stack-auth
Self-Hosted Authentication Platform for Modern Web Apps
Complete authentication solution with OAuth, magic links, and session management that you can deploy and control yourself.
- 6,642+ GitHub stars
- Built with TypeScript
- Multiple authentication methods: email/password, magic links, and OAuth social providers
- Other license
About This Project
Stack Auth delivers a comprehensive authentication system that gives developers full control over their user identity infrastructure. Unlike proprietary services, this open-source platform lets you own your authentication data while providing enterprise-grade features like social logins, passwordless authentication, and advanced session management.
Built specifically for TypeScript and React ecosystems, Stack Auth integrates seamlessly with Next.js applications and uses modern UI components from shadcn. It handles the complex security considerations of authentication—token management, password hashing, OAuth flows—so you can focus on building your application's core features.
The platform offers multiple authentication strategies including traditional email/password, magic links for passwordless login, and social authentication providers. With built-in session management and a developer-friendly API, you get the convenience of managed auth services without vendor lock-in or recurring costs.
Whether you're building a SaaS product, internal tool, or customer-facing application, Stack Auth provides the flexibility to customize authentication flows while maintaining security best practices. Deploy it on your infrastructure and scale according to your needs.
Key Features
- Multiple authentication methods: email/password, magic links, and OAuth social providers
- Native TypeScript support with React and Next.js integration
- Self-hosted deployment with full data ownership and control
- Pre-built UI components using shadcn for rapid implementation
- Comprehensive session management with secure token handling
How You Can Use It
Building a Next.js SaaS application that needs multi-tenant authentication
Replacing expensive third-party auth services to reduce operational costs
Creating internal tools with SSO and social login requirements
Developing privacy-focused applications where user data must stay on-premise
Who Is This For?
Full-stack developers and teams building TypeScript/React applications who want authentication control without sacrificing features