- This is needed only if you are running the SuperTokens core yourself.
- We support only session management with MongoDB. Login support will be added in the future.
docker run \ -p 3567:3567 \ -e MONGODB_CONNECTION_URI="mongodb://root:[email protected]:27017/dbName" \ -d registry.supertokens.io/supertokens/supertokens-mongodb
# You need to add the following to the config.yaml file.# The file path can be found by running the "supertokens --help" command mongodb_connection_uri: "mongodb://root:[email protected]:27017/dbName"
To test, start SuperTokens and run the following query in your database
If you see at least one row, it means that the connection has been successfully completed! 🥳🎉