dashbling icon indicating copy to clipboard operation
dashbling copied to clipboard

YOUR_AUTH_TOKEN

Open ulutomaz opened this issue 6 years ago • 1 comments

Hi,

in your docs, you're mentioning authToken, but I can't seem to find the way to set/get/fix this. How do I get a token, in order to be able to push data to a widget?

Your product is totally awesome, but documentation is kind of sparse. Best, Tomaz

ulutomaz avatar Mar 12 '19 10:03 ulutomaz

Hi Tomaz,

I'm sorry that wasn't clear in the docs. I'm still planning to write some more guides on how to do common things.

You can configure the auth token in two ways.

  1. In your dashbling.config.js:

    module.exports = {
      // other config here
      authToken: "just testing"
    };
    

    This is not recommended though, because you'd be committing the token into your repository.

  2. Using an environment variable.

    The AUTH_TOKEN environment variable can be used to set the authToken. How you set this exactly depends a little on your deployment strategy. In Heroku for example you can simply add an environment variable called AUTH_TOKEN, for local development you might run AUTH_TOKEN=development yarn start in your terminal.

Let me know if something still isn't clear! I'll try to write this up in a guide soon.

pascalw avatar Mar 12 '19 11:03 pascalw