Adding API Keys
This is only relevant if you are running SuperTokens on your own.
Adding API keys to the core is as simple as setting an extra param.
docker run \
-p 3567:3567 \
-e API_KEYS=<TO DO> \
-d supertokens/supertokens-<db name>
# You need to add the following to the config.yaml file.
# The file path can be found by running the "supertokens --help" command
- These are comma separated
- The format is
- Keys can only contain '=', '-' and alpha-numeric (including capital) chars.
- Each key must have a minimum length of 20 chars
- An example value is
"Akjnv3iunvsoi8=-sackjij3ncisds,asnj9=asdcda-OI982JIUN=-a". Notice the
,in the string which separates the two keys
"asnj9=asdcda-OI982JIUN=-a". So in the backend SDK, you should only provide one of these keys.