-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Token can't be used before xxxxx #467
Comments
Yes, the "issue at" (iat) claim is checked when you verify a token. See https://github.com/auth0/java-jwt#time-validation. If you need to disable that specific check, you can do so using the following method. |
You can also use the inbuild method ignoreIssuedAT(). |
FYI I've submitted an errata request to RFC 7519 to update the spec to explicitly prohibit rejecting tokens with Feel free to follow along here: Discussion: JWT tokens containing |
hi
this is the token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpc3N1ZXIiLCJleHAiOjE2MDkxNDA3MTQsImlhdCI6MTYwOTEzNzExNCwidXNlcm5hbWUiOiJhZG1pbiJ9.UBaAyr3AC0FDaiYY5dtgN_TbYin0s37iILSua9AELkU
error: com.auth0.jwt.exceptions.InvalidClaimException: The Token can't be used before Mon Dec 28 14:31:54 CST 2020.
token debug: {
"iss": "issuer",
"exp": 1609140714,
"iat": 1609137114,
"username": "admin"
}
expire time is 2020-12-28 15:31:54, why it say token can't be used before Mon Dec 28 14:31:54 CST 2020 ??? it looks use the iat?
version:
com.auth0
java-jwt
3.10.3
The text was updated successfully, but these errors were encountered: