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
api_keys:
- These are comma separated
string
values. - The format is
key1,key2,key3
. - Keys can only contain '=', '-' and alpha-numeric (including capital) chars.
- Each key must have a minimum length of 20 chars