The iat and nbf claims are the same, but I get an error when validating:
Payload must have a valid "nbf" claim (is not greater than "iat")
I think this is incorrect, the condition should allow equal values.
Arguably an equal nbf doesn't serve much value, but the error is surprising regardless.
I didn't add a test cause I just did this change via GitHub UI without checking out the repo. I figure a simple test should be added to cover this case.
I have a PASETO with a payload like this:
The
iat
andnbf
claims are the same, but I get an error when validating:I think this is incorrect, the condition should allow equal values.
Arguably an equal
nbf
doesn't serve much value, but the error is surprising regardless.I didn't add a test cause I just did this change via GitHub UI without checking out the repo. I figure a simple test should be added to cover this case.