thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
91 stars 14 forks source link

add cosmiconfig to auth0-simulator #179

Open dagda1 opened 2 years ago

dagda1 commented 2 years ago

It would be a better developer experience if the auth0 configuration was picked up automatically using cosmiconfig.

The config would be in the package.json file

  "auth0-simulator": {
    "domain": "localhost:4400",
    "clientId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "scope": "openid profile email offline_access"
    // etc.
  }

Or in one of the loaders supported by cosmiconfig, .e.g. .js, .json, .yaml etc.