mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-12-04 01:24:57 +00:00
Fix set_expires_in not accepting non-default Period (#402)
This commit is contained in:
@@ -90,7 +90,7 @@ TEST(OspJsoncppTest, VerifyTokenExpirationInValid) {
|
||||
const auto token = jwt::create<jwt::traits::open_source_parsers_jsoncpp>()
|
||||
.set_issuer("auth0")
|
||||
.set_issued_now()
|
||||
.set_expires_in(std::chrono::seconds{3600})
|
||||
.set_expires_in(std::chrono::hours{1})
|
||||
.sign(jwt::algorithm::hs256{"secret"});
|
||||
|
||||
const auto decoded_token = jwt::decode<jwt::traits::open_source_parsers_jsoncpp>(token);
|
||||
|
||||
Reference in New Issue
Block a user