LogoTrendingDevTools
icon of SuperTokens

SuperTokens

SuperTokens is open-source authentication with prebuilt login UI, session management, social login, passwordless and MFA. Self-host or use managed.

Visit Website

Introduction

What is SuperTokens?

SuperTokens is an open-source user authentication solution for developers. It gives you prebuilt login and sign-up UI, secure session management and backend SDKs, so you can add authentication to your app without building it from scratch or handing all your user data to a closed third party. You can self-host the SuperTokens core for free or use the managed service.

Key features

  • Multiple login methods: email and password, passwordless (magic links and OTP), social and enterprise login.
  • Session management: secure, rotating refresh tokens with protection against token theft.
  • Prebuilt UI or custom UI: use drop-in React components or build your own screens on top of the APIs.
  • Multi-factor authentication: add TOTP and other second factors.
  • Multi-tenancy: support for B2B apps with per-tenant login methods.
  • User roles: basic role-based access control.
  • Self-hosted or managed: run the core with Docker on your own infrastructure or use SuperTokens' cloud.
  • Override hooks: customize almost any API or function behavior.

Who is it for?

SuperTokens suits startups and product teams that want control over authentication and user data, prefer open source, or want to avoid per-user pricing from managed auth providers. It works with popular stacks including React, Next.js, Node.js, Python and Go.

Use cases

  • Adding login to a SaaS app with social and email sign-in
  • Self-hosting auth to meet data residency requirements
  • B2B multi-tenant apps where each customer has its own login settings
  • Migrating away from an expensive or closed auth provider
  • Adding MFA to an existing application

Pricing

The self-hosted open-source core is free. Managed hosting and some paid add-on features (such as advanced MFA or multi-tenancy at scale) are priced separately; see the official SuperTokens pricing page for current details.

SuperTokens core v12.4.1 was released on October 23, 2026 (release). Open-source, self-hostable auth continues to gain attention as teams look to control costs and keep user data in-house.

Getting started

  1. Follow the SuperTokens quick setup guide and choose your recipe (for example email-password plus social).
  2. Install the frontend SDK (such as supertokens-auth-react) and backend SDK (such as supertokens-node).
  3. Point the backend at a managed core or run your own with Docker.
  4. Initialize SuperTokens in your frontend and backend and add the prebuilt UI routes.
  5. Protect API routes with session verification middleware.

Alternatives

For managed authentication, compare Clerk and WorkOS, which focuses on enterprise SSO. Logto is another open-source identity option. Backend platforms such as Supabase, Appwrite and PocketBase include auth alongside a database, and Unkey handles API key authentication.

FAQ

Is SuperTokens free? Yes, the self-hosted open-source version is free. Managed hosting and some advanced features are paid.

Can I self-host SuperTokens? Yes. The SuperTokens core runs as a Docker container connected to your own database.

Does SuperTokens support social login? Yes, including providers such as Google, GitHub and Apple, plus custom OAuth providers.

Is SuperTokens an Auth0 alternative? Yes. It is commonly chosen as an open-source alternative to Auth0, Firebase Auth and other hosted auth services.

Which frameworks are supported? SuperTokens has SDKs for React and other frontends, and for backends including Node.js, Python and Go.

ℹ️

Affiliate Disclosure: TrendingDevTools may earn a commission if you sign up through links on this page, at no extra cost to you.

Information

Are you the creator of SuperTokens?

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates