Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YOUR_AUTH_TOKEN #31

Open
ulutomaz opened this issue Mar 12, 2019 · 1 comment
Open

YOUR_AUTH_TOKEN #31

ulutomaz opened this issue Mar 12, 2019 · 1 comment

Comments

@ulutomaz
Copy link

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

@pascalw
Copy link
Owner

pascalw commented Mar 12, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants