🍻 use jwks key to parse jwt token

This commit is contained in:
yadong.zhang 2021-04-20 20:51:53 +08:00
parent 17a92d607f
commit 64381490e4

View File

@ -155,7 +155,7 @@ public class JwtUtil {
// allow some leeway in validating time based claims to account for clock skew
.setAllowedClockSkewInSeconds(30)
// verify the signature with the public key
// .setVerificationKey(publicJsonWebKey.getPublicKey())
.setVerificationKey(publicJsonWebKey.getPublicKey())
// create the JwtConsumer instance
.build();