mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Added more verification tests and fixes
This commit is contained in:
parent
e662b445dd
commit
5771f97c1c
4 changed files with 113 additions and 2 deletions
|
@ -443,7 +443,7 @@ std::error_code jwt_object::verify(
|
|||
auto p_exp = payload()
|
||||
.get_claim_value<uint64_t>(registered_claims::not_before);
|
||||
|
||||
if ((p_exp - dparams.leeway) < curr_time) {
|
||||
if ((p_exp - dparams.leeway) > curr_time) {
|
||||
ec = VerificationErrc::ImmatureSignature;
|
||||
return ec;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue