# Incorrect payload data format

**URL:** <https://community.auth0.com/t/incorrect-payload-data-format/104928>\
**Category:** JWT.io\
**Tags:** jwt, api, login\
**Created:** [April 17, 2023, 10:23pm UTC](https://community.auth0.com/t/incorrect-payload-data-format/104928 "2023-04-17T22:23:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prisoner544](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prisoner544/32/46408_2.png) [@prisoner544](https://community.auth0.com/u/prisoner544)\
**Post date:** [April 17, 2023, 10:23pm UTC](https://community.auth0.com/t/incorrect-payload-data-format/104928/1 "2023-04-17T22:23:05Z")

</div>

When I am getting the token after login, But when I want to verify in [jwt.io](http://jwt.io) the payload data is something like this:  
“{"id":"643da67379850�\u0012�\u0013\u001d\n\u0010P�\u0007.�+\u0018����n˽L���NL�\f�\b�^\u001c\b��M�\u000eMM\rL�\f�”

---

<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 18, 2023, 12:55am UTC](https://community.auth0.com/t/incorrect-payload-data-format/104928/3 "2023-04-18T00:55:35Z")

</div>

Hi @prisoner544,

Welcome to the Auth0 Community!

I understand you encountered issues decoding your access token namely with obscure characters for the “id” claim.

Firstly, would you mind providing me with the exact steps and code you used to get the access token?

And if possible, could you send me a direct message with an example of the access token with obscure characters?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![suzannedson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/suzannedson/32/50216_2.png) [@suzannedson](https://community.auth0.com/u/suzannedson)\
**Post date:** [August 27, 2023, 8:34am UTC](https://community.auth0.com/t/incorrect-payload-data-format/104928/4 "2023-08-27T08:34:55Z")

</div>

Good afternoon. I used to have this error too.

---

<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:** [August 29, 2023, 4:37pm UTC](https://community.auth0.com/t/incorrect-payload-data-format/104928/5 "2023-08-29T16:37:19Z")

</div>

Hi all,

Just circling back on the solution that @prisoner544 and I worked on through direct messages.

Essentially, the payload was in the wrong format – specifically, it was an opaque access token because the ‘audience’ parameter was not sent in the login request.

Passing an ‘audience’ in the /authorize request will generate a JWT access token.

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

Reference: [Get Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens#control-access-token-audience)

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:** [September 12, 2023, 4:37pm UTC](https://community.auth0.com/t/incorrect-payload-data-format/104928/6 "2023-09-12T16:37:58Z")

</div>

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