diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-02-12 11:23:16 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-05 09:12:45 +0200 |
commit | 6a7e81b3d331c84633732d6b80d82fcbeb9eed44 (patch) | |
tree | ab9f5b5dc30612bdf89c76c1e8880c0d308f19be /mod/jwt.hxx | |
parent | 3d53ca86d53c119e9b937d3a51571127f75b140c (diff) |
Post-review changes
Diffstat (limited to 'mod/jwt.hxx')
-rw-r--r-- | mod/jwt.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/jwt.hxx b/mod/jwt.hxx index 25e9c21..4b5a54f 100644 --- a/mod/jwt.hxx +++ b/mod/jwt.hxx @@ -22,16 +22,19 @@ namespace brep // // The backdate argument specifies the number of seconds to subtract from // the "issued at" time in order to combat potential clock drift (which can - // casue the token to be not valid yet). + // cause the token to be not valid yet). // - // Return the token or std::system_error in case if an error. + // @@ TODO Is there a standard term? "drift" or "drift value" seems to be + // used quite often. + // + // Return the token or throw std::system_error in case of an error. // string gen_jwt (const options::openssl_options&, const path& private_key, const string& issuer, const std::chrono::minutes& validity_period, - const std::chrono::seconds& backdate = 60); + const std::chrono::seconds& backdate = std::chrono::seconds (60)); } #endif |