Secrets

Secrets (aka environment variables) are stored in a restricted keyword app.secrets.

Set secrets with the Storyscript CLI

story config set foo=bar

Then you may access them via app.secrets map, like this:

if app.secrets.foo == "bar"
    ...

💡Hint

Secrets are case–insensitive. For example: app.secrets.FOO and app.secrets.foo reference the same variable.

Edit this page

What story will you write?

BUILT WITH IN AMSTERDAM

2019. Asyncy, Inc.