SuperTokens
Open-source authentication solution, an alternative to Auth0 and Firebase Auth that you can self-host.
Open source alternative to:
SuperTokens is a comprehensive open-source authentication platform that lets you add secure login, session management, and user management to your application without the per-MAU pricing of Auth0 or Firebase Auth. It can be fully self-hosted or used via their managed cloud service.
SuperTokens supports email/password, passwordless (magic links and OTP), social OAuth (Google, GitHub, Apple, etc.), multi-factor authentication, and roles/permissions. It provides pre-built UI components and backend SDKs for Node.js, Python, Go, and more, with front-end support for React, Next.js, and Vanilla JS.
As a self-hosted solution, SuperTokens stores all user data in your own database (MySQL or PostgreSQL), giving you full data sovereignty. The open-source core is available under a permissive license for self-hosting, making it a popular choice for startups and enterprises looking to reduce authentication infrastructure costs.
Categories:
Build with:
Looking for contributors
This project is actively seeking help, join the community!
Repository details
Updated 6/26/2026, 7:00:39 AM
View RepositoryRepository activity
Compare SuperTokens with
Similar open source alternatives
Keycloak
Open-source identity and access management with SSO, OAuth2, OIDC, and SAML support for modern applications.
Auth0
Authentik
Open source identity provider and SSO solution that replaces Auth0 and Okta with a self-hostable, flexible authentication platform.
Auth0
Stack Auth
Open-source authentication platform for Next.js and React, built as an alternative to Auth0 and Clerk.
Auth0