SuperTokens MySQL

SuperTokens is an open-source, self-hosted user authentication server that adds secure login and session management to your apps.

  • Other
  • Productivity
  • Security
  • Tools & Utilities
SuperTokens is an open-source, self-hosted user authentication server that adds secure login and session management to your apps. This MySQL-backed variant runs the SuperTokens core against a MySQL database instead of the default Postgres, giving developers and self-hosters a fully controllable alternative to Auth0, Firebase Auth, and AWS Cognito. Behavior can be tuned through environment variables or a mounted config file.

Platform availability

Available on 1 of 10 platforms

  • Unraid
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

32/100 Low

Maintained
16last commit 569 days ago
Popular
165 GitHub stars
Easy to install
351 install platform, install notes, Docker image
Light to run
100200 MB minimum RAM, runs on ARM

Availability: platform listings confirmed today, links checked 18 days ago

GitHub stars
5
Open issues
2
Last commit
2025-05-01
Latest release
v8.1.4
Activity
stale

Checked 6 days ago - source: GitHub (supertokens/supertokens-mysql-plugin)

Resources & Compatibility

Minimum requirements: 200 MB RAM. ARM (e.g. Raspberry Pi) is supported.

Checked 54 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Create the database tables first Run the database migrations before the first start so the app creates the tables it needs. If you skip this, sign-up or sign-in may fail because user data has nowhere to be saved. source

Fetched 53 days ago - each note links to its source

Alternatives (5)

  • Auth0 - You can connect any application (written in any language or on any stack) to Auth0 and define its Connection, the method used to authentica…
  • Authelia - Authelia is an open-source authentication and authorization server that provides login, multi-factor authentication, and single sign-on for…
  • Firebase - Firebase, provided by Google, is a backend service and application development platform.
  • Keycloak - Keycloak is an open-source Identity and Access Management platform for adding authentication to self-hosted applications.
  • Supabase - The open source Firebase alternative.

Checked 40 days ago - source: AlternativeTo

Common questions

What steps does the documentation list for self-hosting SuperTokens?

Install SuperTokens core, test that the service is running, connect the backend SDK with SuperTokens, set up the database, add license keys, and secure the core.

What MySQL setup is needed when running SuperTokens without Docker?

Connect to the MySQL server and create a database for SuperTokens to write to.

Which SuperTokens version does the MySQL plugin work with?

It interfaces the SuperTokens Community version with an instance of MySQL.

How should I authorize access to user data after authentication?

Validate on the server that the requested data belongs to the authenticated token's user.

Answers sourced from dev.to, github.com, supertokens.com, www.reddit.com

Community

Collected 48 days ago - public community threads