Here is my JWT Token. This token has expired, and gives me the appropriate exception when I verify this on my local machine. But validates successfully when the same token is validated on the server.
Am I missing something that I need to implement on the Server side?
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJFbWFpbCI6ImJodXNoYW4ucGVuZGhhcmthckBjaXRyaXguY29tIiwiVXNlck5hbWUiOiJiaHVzaGFuLnBlbmRoYXJrYXJAY2l0cml4LmNvbSIsIklkIjoiNzdhNmYzZDEtOGU5Yi00YTE5LThhYTAtZTgwYzUwOTYxZDYxIiwiRnVsbE5hbWUiOiJCaHVzaGFuIFBlbmRoYXJrYXIiLCJuYmYiOjE0OTY5MzgxNTEsImV4cCI6MTQ5NjkzODIxMSwiaWF0IjoxNDk2OTM4MTUxfQ.kyWSmcWy1HNv8UwVjC4ZzuopDRCWYzTInvz6kKjhUDY
Here is my code:
String lstrJWTSymmetricKey ="Some key";
Claims claims = Jwts.parser()
.setSigningKey(lstrJWTSymmetricKey.getBytes("utf-8"))
.parseClaimsJws(jwtToken)
.getBody();