# SuperTokens MySQL

SuperTokens MySQL is a self-hosted other app. SuperTokens is an open-source, self-hosted user authentication server that adds secure login and session management to your apps. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/3364/supertokens-mysql

## Description

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.

## Health score

32/100 (Low), based on 4 of 4 factors.
- Maintained: 16 (last commit 569 days ago)
- Popular: 16 (5 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 100 (200 MB minimum RAM, runs on ARM)

## Links

- GitHub: https://github.com/supertokens/supertokens-mysql-plugin
- Docker Hub: https://hub.docker.com/r/supertokens/supertokens-mysql
- Official website: https://supertokens.com/
- Unraid: https://ca.unraid.net/apps/supertokens-mysql-1onjqpg068x87k?q=SuperTokens---MySQL
- Documentation: https://supertokens.com/docs

## 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.

## Alternatives

- 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.

---
Source: Our Local Host (https://ourlocalhost.com/app/3364/supertokens-mysql), the self-hosted and open-source app directory.
