SuperTokens has a frontend, backend and core.
They communicate with each other
FRONTEND CLIENT
YOUR BACKEND
API
SUPERTOKENS
CORE
The ST frontend provides a prebuilt UI that you can add to your website
FRONTEND CLIENT
YOUR BACKEND
API
SUPERTOKENS
MANAGED
SERVICE


Responsible for rendering the login UI widgets and managing session tokens automatically.
FRONTEND CLIENT
Responsible for rendering the login UI widgets and managing session tokens automatically.
YOUR BACKEND
API
SUPERTOKENS
MANAGED
SERVICE

Backend SDK adds authentication apis to your backend. E.g: Sign in, Sign up.
The Backend SDK is within your API layer
Frontend SDK calls the APIs exposed by the Backend SDK
FRONTEND CLIENT
YOUR BACKEND
API
SUPERTOKENS
MANAGED
SERVICE
The core is a seperate instance. Run it at your own server or host it with us
FRONTEND CLIENT
YOUR BACKEND
API
SUPERTOKENS
CORE


This is a HTTP service that contains the core logic for auth. It’s responsible for interfacing with the database and is used by our backend SDK for operations that require the db.
Backend SDK calls the core to persist user data
FRONTEND CLIENT
YOUR BACKEND
API
SUPERTOKENS
CORE