# Access token is null when using Authentication API Debugger with password grant

**URL:** <https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [February 3, 2022, 12:14pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590 "2022-02-03T12:14:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElGringo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/elgringo/32/34922_2.png) [@ElGringo](https://community.auth0.com/u/ElGringo)\
**Post date:** [February 3, 2022, 12:14pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/1 "2022-02-03T12:14:03Z")

</div>

Hi. I’d like to implement a SPA with an API. I found a great [tutorial](https://auth0.com/docs/get-started/architecture-scenarios/spa-api/part-1) which is looks like fit to my purposes. At the moment I’d like to test my API with an `access_token` that was acquired by my SPA. For this I found the Authentication API Debugger where I’m able to authenticate my users using SSO and Password Grant. My problem is that I’m not getting `access_token` when I’m using Password Grant. I’m getting the proper `id_token` for my user but the `access_token` is null.

For the configuration in the Application dropdown I choose my SPA and for the settings I add the API’s audience. When I’m using SSO for another user I’m able to receive an `access_token`.

Do you have any idea what should I missing or what am I doing wrong for getting `null` value for the `access_token`

 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/a/fa73edd9b23e57dedc233af07a1332971df65781.png)

---

<div class="post-metadata">

**Author:** ![pranshushah](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pranshushah/32/34583_2.png) [@pranshushah](https://community.auth0.com/u/pranshushah)\
**Post date:** [February 4, 2022, 8:21pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/2 "2022-02-04T20:21:35Z")

</div>

1. have provided your api as an audience with permission at the time of login?
2. if not you use [get access token](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens) for more help

---

<div class="post-metadata">

**Author:** ![ElGringo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/elgringo/32/34922_2.png) [@ElGringo](https://community.auth0.com/u/ElGringo)\
**Post date:** [February 6, 2022, 11:34pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/3 "2022-02-06T23:34:54Z")

</div>

hi. thanks for the response. as I mentioned I added the audience of the API. If there is no audience I’m not getting access token for the sso authentication either. so because the sso is working and providing access token I’m suspecting something else

---

<div class="post-metadata">

**Author:** ![kevin16](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kevin16/32/45629_2.png) [@kevin16](https://community.auth0.com/u/kevin16)\
**Post date:** [March 21, 2023, 12:44am UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/4 "2023-03-21T00:44:02Z")

</div>

Out of curiosity, were you able to figure this out? I’m also trying to use that same debugger extension.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 21, 2023, 10:14pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/5 "2023-03-21T22:14:03Z")

</div>

Hey there @kevin16 and @ElGringo welcome to the community! I apologize for the lack of response @ElGringo - Hopefully you were able to get this sorted.

@kevin16 I’m not sure what’s going on with the UI, but when you are returned back to the extension do you see the access token in the url despite it showing `null` in the UI? That was the case for me when testing just now.

Let us know!

---

<div class="post-metadata">

**Author:** ![ElGringo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/elgringo/32/34922_2.png) [@ElGringo](https://community.auth0.com/u/ElGringo)\
**Post date:** [March 22, 2023, 3:06pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/7 "2023-03-22T15:06:25Z")

</div>

yep. the solution was what [pranshushah](https://community.auth0.com/u/pranshushah) mentioned. you need to pass the audience here:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/1/21e915ccda80a6f31a98df6ce0ed02edf41f4f97.png)

it should be the api identifier for the api that you need access token to

---

<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:** [April 5, 2023, 3:07pm UTC](https://community.auth0.com/t/access-token-is-null-when-using-authentication-api-debugger-with-password-grant/77590/8 "2023-04-05T15:07:10Z")

</div>

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