Skip to content
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

Should throw JWTDecodeException in case date based claims like "exp" are specified in the wrong format. #240

Closed
uwinkelvos opened this issue Feb 21, 2018 · 1 comment

Comments

@uwinkelvos
Copy link

We saw an issue, that when accidentally specifying an "exp" claim as iso string the exp claim is silently ignored. Imho a JWTDecodeException should be thrown.

See:

if (node == null || node.isNull() || !node.canConvertToLong()) {

@lbalmaceda
Copy link
Contributor

Yes, that makes sense. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants