Check for a valid API token.

Will prompt to add one to ~/.reuters-graphics/rngs-io.json if token is invalid or not found.

You can also set a RNGS_IO_API_TOKEN environment variable with your token, which is useful in GitHub Actions and other serverless environments.

Usage
$ rngs-io token check [options]

Options
-h, --help Displays this message
  • Returns Promise<string>