We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
It should be a great thing to be able to support java.time.Instant and java.time.Clock instant of Date and io.jsonwebtoken.Clock.
Jwts.builder() .setSubject(user.username()) .setId(tokenId.toString()) .setExpiration(Instant.now().plus(expiration)) .setIssuedAt(Date.from(now)) .addClaims(claimsBldr.build()) .signWith(SignatureAlgorithm.HS512, signingKey) .compact();
Jwts.parser() .setSigningKey(signingKey) .setClock(Clock.systemUTC()) .parseClaimsJws(token.replace(PREFIX, "")) .getBody();
The text was updated successfully, but these errors were encountered:
This depends on #308
Sorry, something went wrong.
Closing as duplicate of #235. Please #235 for work/discussion.
No branches or pull requests
It should be a great thing to be able to support java.time.Instant and java.time.Clock instant of Date and io.jsonwebtoken.Clock.
The text was updated successfully, but these errors were encountered: