Quickstart
Get SuperTokens Core up and running on your local machine in just a few minutes.Run with Docker
The fastest way to start SuperTokens Core is with Docker:This starts SuperTokens Core with an in-memory PostgreSQL database on port 3567.
For production, you should use an external database. See Database setup for details.
Verify it's running
Test that SuperTokens Core is responding by checking the health endpoint:You should see:
What’s next?
Now that SuperTokens Core is running, you can:Explore authentication methods
Learn about email/password, passwordless, social login, and more
Understand sessions
Deep dive into how session management works
Configure SuperTokens
Customize settings for your use case
Browse API reference
Explore all available endpoints
Running with different databases
PostgreSQL
MySQL
MongoDB
Using with Backend SDKs
SuperTokens Core is designed to work with Backend SDKs. Here’s a quick example with Node.js:Install the Backend SDK
Initialize the SDK
Production deployment
For production use, you’ll want to:- Use an external database: Don’t rely on in-memory storage
- Configure API keys: Secure the connection between your Backend SDK and Core
- Set up proper networking: Keep Core on a private network
- Enable monitoring: Configure logging and health checks
Troubleshooting
Port already in use
If port 3567 is already in use, you can change it:http://localhost:8080 instead.
Connection refused
Make sure:- Docker is running
- The container started successfully:
docker ps - Check logs:
docker logs <container-id>
Database connection errors
If using an external database, verify:- The database server is accessible
- Credentials are correct
- The database exists and user has proper permissions
Learn more
Architecture
Understand how SuperTokens components work together
Docker deployment
Full Docker and docker-compose setup guide
Configuration reference
Complete list of all configuration options
Multi-tenancy
Set up multi-tenant applications