supertokens /supertokens-core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
★ 15,345⑂ 778👁 83⑃ 880● 614▤ 193
+1
日增长
15,345
stars
778
forks
83
watchers
880
prs
614
issues
193
releases
README
Open-Source auth provider
Add secure login and session management to your apps. SDKs available
for popular languages and front-end frameworks e.g. Node.js, Go, Python, React.js, React Native, Vanilla JS, etc.
!Architecture Diagram
Supertokens architecture is optimized to add secure authentication for your users without compromising on user and
developer experience
Three building blocks of SuperTokens architecture
1. Frontend SDK: Manages session tokens and renders login UI widgets
2. Backend SDK: Provides APIs for sign-up, sign-in, signout, session refreshing, etc. Your Frontend will talk to these
APIs
3. SuperTokens Core: The HTTP service for the core auth logic and database operations. This service is used by the
Backend SDK
Features
Passwordless Login
Social Login
Email Password Login
Phone Password Login
Session Management
Multi-Factor Authentication
Multi Tenancy / Organization Support (Enterprise SSO)
User Roles
Microservice Authentication
Learn more
- 🚀 What is SuperTokens?
- Philosophy
- Features + Demo app
- Documentation
- 🏗️ Architecture
- ☕ Why Java?
- ⌨️ User Management Dashboard
- 🔥 SuperTokens vs Others
- 🛠️ Building from source
- 👥 Community
- Contributors
- 👩💻 Contributing
- 📝 License
If you like our project, please :star2: this repository! For feedback, feel free to join our Discord, or create an issue on this repo
🚀 What is SuperTokens?
SuperTokens is an open-core alternative to proprietary login providers like Auth0 or AWS Cognito. We are
different because we offer:
- Open source: SuperTokens can be used for free, forever, with no limits on the number of users.
- An on-premises deployment so that you control 100% of your user data, using your own database.
- An end-to-end solution with login, sign-ups, user and session management, without all the complexities of OAuth
protocols.
- Ease of implementation and higher security.
- Extensibility: Anyone can contribute and make SuperTokens better!
Philosophy
Authentication directly affects the UX, dev experience, and security of any app. We believe that
current solutions cannot optimize for all three "pillars", leading to many
applications hand-rolling their own auth. This not only leads to security issues but is also a massive
time drain.
We want to change that - we believe the only way is to provide a solution that has the right level of
abstraction gives you maximum control, is secure, and is simple to use - just like if you build it yourself,
from scratch (minus the time to learn, build, and maintain).
We also believe in the principle of least vendor lock-in. Your having full control of your user's data means that you
can switch away from SuperTokens without forcing your existing users to logout, reset their passwords, or in the worst
case, sign up again.
Click here to see the demo app.
- Please visit our website to see the list of features.
- We want to make features as decoupled as possible. This means you can use Top issues
#28(Intermediate) If running the docker image in foreground, sending a kill signal doesn't stop the container23 comments · 2020-09-23#478Send email on successful password reset9 comments · 2022-07-19#29Use https://www.graalvm.org/ instead of OpenJDK for lower RAM consumption, and to reduce the problem of cold start9 comments · 2020-09-23#420No Spring Boot??8 comments · 2022-04-09#399[feature] Deno SDK8 comments · 2022-03-21#406Auth usage with remix7 comments · 2022-03-28#5(Intermediate) Docker image's error log not in stderr7 comments · 2020-09-11#572Add support with Cloudflare Worker6 comments · 2023-02-26
Latest release
v12.5.0 v12.5.0 2026-11-06What's Changed feat: configurable SAML attribute mapping for user ID, email and names by @supertokens-agent-runner[bot] in https://github.com/supertokens/supertokens-core/pull/1506 fix: skip the backfill cron when migrated and store imported timeJoined 0 as 1 by @tamassoltesz in https://github.com/supertokens/supertokens-core/pull/1508 ci: release tags — never publish a release without its tag, never delete a tag before moving it, leave unreleased plugin tags alone by @tamassoltesz in https://github.com/supertokens/supertokens-core/pull/1509 feat: add disable_user_id_mapping to skip user i