Error while validating the JWT token. Reason: invalid signature

Ready to post? :mag: First, try searching for your answer.
I connected an application to Auth0 and everything worked fine for a few weeks. But now, when try to log-in to my application using Chrome I get “Error while validating the JWT token. Reason: invalid signature”.
This happened to several users, so it’s not local my computer. I can resolve by deleting cookies, but I want to avoid the situation. Any ideas what might be causing this and how to resolve?

Hi @erezst,

Welcome to the Auth0 Community and sorry for the late reply!

Most likely in this scenario you are not passing the audience claim to your request. That is basically the indented consumer of the token, typically the resource server. For that reason you might be getting an opaque token, so i would recommend checking out our Validate Access Tokens Documentation.

You can specify the audience in your request as described below:
"aud": "https://test-api"",

More information about this can be checked under this Knowledge Article.

I hope this helped,
Remus