Auth0 Home Blog Docs

Io.jsonwebtoken does not validate the accessToken issued by Auth0

I’m using io.jsonwebtoken to verify the accessToken I get from Auth0. But it always throws io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted. exception. But jwt.io says that the token was valid.

I’m calling the method as below:
Jwts.parser().setSigningKey("mySecretKey").parseClaimsJws("accessToken")

What am I missing here?

Note: com.auth0:java-jwt works perfectly but I need to use io.jasonwebtoken for some reason.

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?