# Cannot convert access token to JSON

**URL:** <https://community.auth0.com/t/cannot-convert-access-token-to-json/84477>\
**Category:** Get Help\
**Tags:** jwt, api, login, auth0\
**Created:** [June 2, 2022, 1:58pm UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477 "2022-06-02T13:58:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![x.sanchez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/x.sanchez/32/37563_2.png) [@x.sanchez](https://community.auth0.com/u/x.sanchez)\
**Post date:** [June 2, 2022, 1:58pm UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477/1 "2022-06-02T13:58:08Z")

</div>

We are having problems loging into an application because it’s throwing all the time an invalid\_token error saying that “cannot convert access token to JSON”. The thing is that everything worked fine till the last week when suddenly we couldn’t go past the login screen but we did not change our code at all.

Does anyone have the same problem or know how to solve it?

Thank you

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 10, 2022, 4:12pm UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477/3 "2022-06-10T16:12:59Z")

</div>

Hi @x.sanchez,

Welcome to the Auth0 Community!

Can you provide a bit more info about your setup? What libraries/frameworks are you using, versions, etc.

Also, a sample token (sensitive data removed) would be helpful. Thank you!

---

<div class="post-metadata">

**Author:** ![x.sanchez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/x.sanchez/32/37563_2.png) [@x.sanchez](https://community.auth0.com/u/x.sanchez)\
**Post date:** [June 13, 2022, 9:01am UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477/4 "2022-06-13T09:01:09Z")

</div>

Hi @dan.woda,  
The token estructure that we have is this one:  
 ![accestoken](https://global.discourse-cdn.com/auth0/original/3X/6/3/63c07554fa162598067c3ecc16cc7ac579687308.png)

The problem can be related to a revoked or expired signing key?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 13, 2022, 3:39pm UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477/5 "2022-06-13T15:39:33Z")

</div>

You can try decoding the access token with [jwt.io](http://jwt.io).

---

<div class="post-metadata">

**Author:** ![x.sanchez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/x.sanchez/32/37563_2.png) [@x.sanchez](https://community.auth0.com/u/x.sanchez)\
**Post date:** [June 28, 2022, 5:48am UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477/6 "2022-06-28T05:48:58Z")

</div>

We discovered that the error was happening because the signing certificate wasn’t the correct one!

Thank you for helping us!

Regards,

Xavier

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 11:37am UTC](https://community.auth0.com/t/cannot-convert-access-token-to-json/84477/7 "2022-12-22T11:37:01Z")

</div>


