Fix set_expires_in not accepting non-default Period (#402)

This commit is contained in:
Ilya Andreev
2025-12-29 16:08:15 +03:00
committed by GitHub
parent 7fc762d7d6
commit b89a5b1cb5
7 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ rK0/Ikt5ybqUzKCMJZg2VKGTxg==
.set_type("JWT")
.set_id("rsa-create-example")
.set_issued_now()
.set_expires_in(std::chrono::seconds{36000})
.set_expires_in(std::chrono::hours{1})
.set_payload_claim("sample", jwt::claim(std::string{"test"}))
.sign(jwt::algorithm::rs256("", rsa_priv_key, "", ""));