
SuperTokens
supertokens · Login services for your app
What is SuperTokens?
SuperTokens adds login and session management to your apps through frontend and backend SDKs and a core service you can run yourself. It describes itself as an open-core alternative to Auth0 and AWS Cognito. The core is Apache-2.0, but code in its ee folder needs a paid subscription for production use, and some features are paid add-ons even when self-hosted.
SuperTokens is an open-core login and session management provider, and an alternative to Auth0 and AWS Cognito. Frontend and backend SDKs talk to the SuperTokens Core service, which you can run yourself with your own database, free and with no limit on users.
Core capabilities
- Email and password, passwordless and social login, session management and user roles.
- SDKs for Node.js, Go, Python, React and React Native.
- Self-hosting the open-source features is free with no user limit.
Three building blocks
A frontend SDK manages session tokens and renders the login screens. A backend SDK provides the APIs for sign-up, sign-in, sign-out and session refresh. Those APIs call SuperTokens Core, an HTTP service that holds the auth logic and database operations.
- SDKs
- Self-host
- Java
Login methods
It covers email and password, phone and password, passwordless magic links and one-time codes, and social login with Google, GitHub, Facebook and custom providers. A user management dashboard and role-based access control are included.
- Passwordless
- Social login
- RBAC
What is free and what is paid
Self-hosting the open-source features is free with no limit on users. Multi-factor authentication, account linking, multi-tenancy and unified login across domains are paid add-ons, also when you host it yourself. The managed cloud costs $0.02 per monthly active user and is free under 5,000.
- Apache-2.0
- Open core
- Pricing
Where it fits
Use cases
- 01
Replace Auth0 with login you host
Run SuperTokens Core on your own servers with your own database. The project positions itself against Auth0 and AWS Cognito, and self-hosting the open-source features has no limit on users.
- 02
Add passwordless login
Offer magic links or one-time codes by SMS or email alongside social login and email and password.
- 03
Use only the session management
Features are decoupled, so you can use SuperTokens just for login or just for sessions, including session management alongside other login providers such as Auth0.