- Notifications
You must be signed in to change notification settings - Fork634
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
License
supertokens/supertokens-core
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Addsecure login and session management to your apps.SDKs availablefor popular languages and front-end frameworks e.g. Node.js, Go, Python, React.js, React Native, Vanilla JS, etc.

Three building blocks of SuperTokens architecture
- Frontend SDK: Manages session tokens and renders login UI widgets
- Backend SDK: Provides APIs for sign-up, sign-in, signout, session refreshing, etc. Your Frontend will talk to theseAPIs
- SuperTokens Core: The HTTP service for the core auth logic and database operations. This service is used by theBackend SDK
- 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
- 🚀 What is SuperTokens?
- 🏗️ Architecture
- ☕ Why Java?
- ⌨️ User Management Dashboard
- 🔥 SuperTokens vs Others
- 🛠️ Building from source
- 👥 Community
- 👩💻 Contributing
- 📝 License
If you like our project, please 🌟 this repository! For feedback, feel free to join ourDiscord, or create an issue on this repo
SuperTokens is an open-core alternative to proprietary login providers like Auth0 or AWS Cognito. We aredifferent 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 OAuthprotocols.
- Ease of implementation and higher security.
- Extensibility: Anyone can contribute and make SuperTokens better!
Authentication directly affects the UX, dev experience, and security of any app. We believe thatcurrent solutions cannot optimize for all three "pillars", leading to manyapplications hand-rolling their own auth. This not only leads to security issues but is also a massivetime drain.
We want to change that - we believe the only way is to provide a solution that has the right level ofabstraction 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 youcan switch away from SuperTokens without forcing your existing users to logout, reset their passwords, or in the worstcase, sign up again.
Click here to see the demo app.
- Please visitour website to see the list of features.
- We want to make features as decoupled as possible. This means you can use SuperTokens for just login, or just sessionmanagement, or both. In fact, we also offer session management integrations with other login providers like Auth0.
The docs can be seenon our website.
There is more information about SuperTokens ontheGitHub wiki section.
Please find anarchitecture diagram here
For more information, please visitourGitHub wiki section.
- ✅ Whilst running Java can seem difficult, we provide the JDK along with the binary/docker image when distributing it.This makes running SuperTokens just like running any other HTTP microservice.
- ✅ Java has a very mature ecosystem. This implies that third-party libraries have been battle-tested.
- ✅ Java's strong type system ensures fewer bugs and easier maintainability. This is especially important when manypeople are expected to work on the same project.
- ✅ Our team is most comfortable with Java and hiring great Java developers is relatively easy as well.
- ✅ One of the biggest criticisms of Java is memory usage. We have three solutions to this:
- The most frequent auth-related operation is session verification - this happens within the backend SDK (node,python, Go) without contacting the Java core. Therefore, a single instance of the core can handle several 10s ofthousands of users fairly easily.
- We have carefully chosen our dependencies. For eg: we use an embedded tomcat server instead of a higher-level webframework.
- We also plan on usingGraalVM in the future and this can reduce memory usage by 95%!
- ✅ If you require any modifications to the auth APIs, those would need to be done on the backend SDK level (for exampleNode, Golang, Python..). So you’d rarely need to directly modify/work with the Java code in this repo.
Oversee your users with theSuperTokens User Management Dashboard
List all the users who have signed up to your application.
Manage users by modifying or deleting their sessions, metadata, roles and account info.
Please find a detailed comparison charton our website
Please see ourwiki for instructions.
If you think this is a project you could use in the future, please 🌟 this repository!
Please see theCONTRIBUTING.md file forinstructions.
© 2020-2023 SuperTokens Inc and its contributors. All rights reserved.
Portions of this software are licensed as follows:
- All content that resides under the "ee/" directory of this repository, if that directory exists, is licensed under thelicense defined in "ee/LICENSE.md".
- All third-party components incorporated into the SuperTokens Software are licensed under the original license providedby the owner of the applicable component.
- Content outside of the above-mentioned directories or restrictions above is available under the "Apache 2.0"license as defined in the level "LICENSE.md" file
About
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.





