mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Fix set_expires_in not accepting non-default Period (#402)
This commit is contained in:
@@ -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, "", ""));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user