Open
Description
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
If we have a jwt token, with exp claim value as
"exp": 1.733162101e+26,
the library fails to decode the token. We get a JWTDecodeException with error "The claim 'exp' contained a non-numeric date value."
According the RFC on JWT(https://datatracker.ietf.org/doc/html/rfc7519#section-2), a NumericDate should adhere to IEEE Std 1003, according to which scientific notation representation is valid.
Reproduction
- Create a jwt token with exp claim in scientific notation.
- Try to decode the token. It will fail with "The claim 'exp' contained a non-numeric date value."
Additional context
No response
java-jwt version
4.4.0
Java version
17