Mistake in PrematureJwtException error message
laurids opened this issue · 1 comments
laurids commented
Describe the bug
When a PrematureJwtException
is thrown, the differenceMillis
is wrong, since it is calculated as the difference between nbf
and minTime
, instead of the difference between nbf
and nowTime
.
See DefaultJwtParser.java#L584
See also the equivalent calculation for expiration time, line 564.
lhazlewood commented
Thanks for the issue! Thankfully the assertion behavior correct, and it's just the exception message itself that needs to be cleaned up.