Categories
Developer Tools Security API Authentication Identity Management Single Sign-On Multi-TenancyStars
Forks
Watchers
Developer links
SuperTokens
Powering authentication for over 15,000 GitHub stargazers and production deployments across startups and enterprises alike, SuperTokens delivers the complete login infrastructure that Auth0, Firebase Auth, and AWS Cognito charge premium prices for — entirely open source under Apache 2.0 with no per-user limits. The Java-based core service runs as a lightweight HTTP microservice that connects to PostgreSQL or MySQL and handles email-password login, passwordless magic links and OTP via email or SMS, social OAuth with Google, GitHub, Facebook, Apple, and any custom OIDC provider, phone-password authentication, and time-based one-time password multi-factor authentication. Session management uses rotating refresh tokens with anti-CSRF and anti-session-fixation protections, verifying tokens locally in your backend SDK without network round-trips to the core. Frontend SDKs for React, React Native, Angular, Vue, and vanilla JavaScript provide pre-built UI components for login, signup, email verification, and password reset flows, all customizable through an override system that lets you add pre- and post-API logic, custom hooks, and user event handlers. The built-in user management dashboard enables administrators to view users, reset passwords, revoke sessions, modify roles, and manage email verification status. Multi-tenancy and organization support powers B2B SaaS applications with tenant-level authentication configuration and Enterprise SSO via SAML and OIDC. Migration tools support bulk importing millions of existing password hashes, TOTP secrets, and role mappings. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache 2.0 licensed.
Benefits
- Zero Per-User Cost Limits
- Self-host SuperTokens for free at any scale with no monthly active user caps, unlike Auth0 and Firebase Auth which charge per-user fees that escalate with growth.
- Complete Login Method Coverage
- Support email-password, passwordless magic links and OTP, social OAuth with Google, GitHub, Facebook, and custom OIDC providers, plus multi-factor TOTP in a single platform.
- Local Token Verification Speed
- Verify session tokens directly in your Node.js, Python, or Go backend SDK without network round-trips, achieving sub-millisecond authentication checks with rotating refresh tokens.
- Multi-Tenant Enterprise SSO Ready
- Configure tenant-level authentication with SAML and OIDC Enterprise SSO, custom branding per organization, and isolated user pools for B2B SaaS deployment patterns.
Features
- Pre-Built Login UI
- Drop-in React, React Native, Angular, Vue, and vanilla JavaScript components for login, signup, email verification, and password reset with full style customization.
- User Management Dashboard
- View and manage users, reset passwords, revoke sessions, modify roles, and handle email verification through an integrated administrative web interface.
- Session Security Suite
- Rotating refresh tokens with anti-CSRF protection, anti-session-fixation defenses, and automatic token theft detection built into every backend SDK.
- Override and Hook System
- Add custom pre- and post-API logic, modify request bodies and headers, handle user events, and control redirects through composable override functions.
- Bulk Migration Tools
- Import millions of existing users with password hashes, TOTP secrets, roles, permissions, and custom user ID mappings for seamless platform transitions.