Posts by gabrx • 9 points
1 post
-
0
votes0
answers40
viewsQ: Exception is being printed on the console instead of being sent to the client
public boolean validateToken(String token){ try { Jws<Claims> claims = Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token); if (claims.getBody().getExpiration().before(new Date())) {…