Cannot convert access token to JSON

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

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!

Hi @dan.woda,
The token estructure that we have is this one:

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

You can try decoding the access token with

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

Thank you for helping us!



1 Like