com.auth0.jwt.exceptions.IncorrectClaimException: The Token can’t be used before
I am getting the above exception while verifying a Access JWT Token. The library I am using to verify the token is jwks-rsa-0.22.0.jar. But it works intermittently. When I parse the token in jwt.io, it shows the right data. Getting the exception only on java,
String token = {access_jwt_token}
// Creating verifier
DecodedJWT jwt = JWT.decode(token);
Jwk jwk = provider.get(jwt.getKeyId());
Algorithm algorithm = Algorithm.RSA256((RSAPublicKey) jwk.getPublicKey(), null);
JWTVerifier verifier = JWT.require(algorithm).withIssuer({auth0_domain}).build();
// Verifying and getting the payload.
DecodedJWT accessJwt = verifier.verify(token);
String payload = jwt.getPayload();