# Invalid access token

**URL:** <https://community.auth0.com/t/invalid-access-token/103527>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [March 28, 2023, 1:26pm UTC](https://community.auth0.com/t/invalid-access-token/103527 "2023-03-28T13:26:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![govindsharmadln](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@govindsharmadln](https://community.auth0.com/u/govindsharmadln)\
**Post date:** [March 28, 2023, 1:26pm UTC](https://community.auth0.com/t/invalid-access-token/103527/1 "2023-03-28T13:26:28Z")

</div>

I got token from Auth0 but invalid access token ‘cnM9zL7xXQVq8pwt2n4S5C6zR-6Yw66G’

JWT signature is RS256.  
by [jwt.io](http://jwt.io) port to check this token i got empty payload.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 28, 2023, 3:38pm UTC](https://community.auth0.com/t/invalid-access-token/103527/3 "2023-03-28T15:38:49Z")

</div>

Hi @govindsharmadln,

Welcome to the Auth0 Community!

I understand you have experienced an invalid access token error.

To better assist you, could you please clarify what SDK you are using?

And if you could please [capture the login events in a HAR file](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me as a direct message to investigate further?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![govindsharmadln](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@govindsharmadln](https://community.auth0.com/u/govindsharmadln)\
**Post date:** [March 29, 2023, 4:20pm UTC](https://community.auth0.com/t/invalid-access-token/103527/4 "2023-03-29T16:20:27Z")

</div>

I have created regular web application in based on spring boot.  
I found invalid access token that why I am unable to login .  
Any configuration changes are required to found correct acces token.  
If required then kindly suggest me the step to enable that configuration.  
To get valid token .

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 7, 2023, 11:08pm UTC](https://community.auth0.com/t/invalid-access-token/103527/5 "2023-04-07T23:08:07Z")

</div>

Hi @govindsharmadln,

Thank you for your response.

Firstly, have you made sure that your login request looks something like the following, specifically, the `audience` parameter is included in the request:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}

```

(Reference: [Call Your API Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow))

The `audience` parameter is needed to get valid JWT access tokens. See [Get Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens#control-access-token-audience) for an explanation.

Additionally, I recommend checking out our [Troubleshoot Invalid Token Errors](https://auth0.com/docs/troubleshoot/basic-issues/invalid-token-errors) documentation.

If the error persists even after the recommendations above, could you please [capture the login events in a HAR file](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me as a direct message to investigate further?

Thanks,  
Rueben

---

<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 21, 2023, 11:08pm UTC](https://community.auth0.com/t/invalid-access-token/103527/6 "2023-04-21T23:08:51Z")

</div>

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