> For the complete documentation index, see [llms.txt](https://docs.appmachine.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmachine.com/developers/javascript/cli/errors/token_secret_not_provided.md).

# TOKEN\_SECRET\_NOT\_PROVIDED

![](/files/3uzhO7vX9oep8uz1yM9J)

### Why I'm seeing this[​](http://localhost:3000/cli/errors/TOKEN_SECRET_NOT_PROVIDED#why-im-seeing-this) <a href="#why-im-seeing-this" id="why-im-seeing-this"></a>

The `token` or `secret` configured in `myjsblock.credentials.js` are invalid. When pushing a new version, the token or secret configured in `myjsblock.credentials.js` under `token` or `secret` was empty.

### How to fix it[​](http://localhost:3000/cli/errors/TOKEN_SECRET_NOT_PROVIDED#how-to-fix-it) <a href="#how-to-fix-it" id="how-to-fix-it"></a>

Make sure the `token` and `secret` are stored in the `myjsblock.credentials.js` not to be confused with `myjsblock.config.js` file. This secret and token can be created in the [Appmachine Designer](https://design3.appmachine.com/) after adding a new 'Javascript' block.

More information about creating new tokens and secrets, see [create-new-token-secret](broken://pages/ANqrFI2o4koYa09NePcQ).

Your `myjsblock.credentials.js` for such a project should be:

```json
{
  "token": "TJ9plldgQSL87dnK6ZIVpzTszlG3TPKo",
  "secret": "ifb1kEBUYBJ17NSQWdBUNoTTU5O2d1jlTJ9plldgQSL87dnK6ZIVpzTszlG3TPKo"
}
```

<br>
