# Auth0 CLI test access token no longer works

**URL:** <https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [January 25, 2025, 7:09pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300 "2025-01-25T19:09:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adesjardins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adesjardins/32/70868_2.png) [@adesjardins](https://community.auth0.com/u/adesjardins)\
**Post date:** [January 25, 2025, 7:09pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300/1 "2025-01-25T19:09:02Z")

</div>

I am trying to use the Auth0 CLI to obtain test tokens. I have been doing it this way for a long time, but as of the last few weeks, it just errors out with no information.

Steps:

1. `auth0 test token`
2. login if necessary
3. select my client
4. select my audience/api

I get the following:

```bash
.us.auth0.com error

 ▸ Please provide options to select from.

```

I try to list out the logs, but there is nothing useful there. Is there anywhere else I can look for specific errors.

My client (web app) has the audience listed in its configuration. Is there any additional config required for the API?

I tried upgrading my CLI to no avail.

auth0 version 1.8.0 c672a3c6ab2a04f57c420e832307aeb26e44ba8b

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 28, 2025, 12:33pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300/3 "2025-01-28T12:33:13Z")

</div>

Hi @adesjardins

Welcome to the Auth0 Community!

Thank you for posting your question, I’ve been able to reproduce this issue and to fix it you’ll need to add permissions to your API and add them to the connection from the Machine to Machine tab in the API settings. After that I’ve been able to get the Access Token.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![adesjardins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adesjardins/32/70868_2.png) [@adesjardins](https://community.auth0.com/u/adesjardins)\
**Post date:** [February 1, 2025, 7:46pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300/4 "2025-02-01T19:46:28Z")

</div>

Add what to permissions? I am not trying to use Machine to Machine. I am trying generate a user access token.

---

<div class="post-metadata">

**Author:** ![adesjardins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adesjardins/32/70868_2.png) [@adesjardins](https://community.auth0.com/u/adesjardins)\
**Post date:** [February 1, 2025, 7:48pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300/5 "2025-02-01T19:48:14Z")

</div>

For some reason, I cannot edit my previous comment, but I do have my Web Application authorized inside Machine to Machine tab on my API. What do I need to add to permissions? Why would this suddenly change?

---

<div class="post-metadata">

**Author:** ![adesjardins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adesjardins/32/70868_2.png) [@adesjardins](https://community.auth0.com/u/adesjardins)\
**Post date:** [February 1, 2025, 7:49pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300/6 "2025-02-01T19:49:35Z")

</div>

Interesting, I added a random scope to the permissions then to the Web App in Machine to Machine, and it worked.

Even though I don’t use scopes, they are required?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 15, 2025, 7:49pm UTC](https://community.auth0.com/t/auth0-cli-test-access-token-no-longer-works/170300/7 "2025-02-15T19:49:50Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
