mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
Added nbf check and more exception and error code handling
This commit is contained in:
parent
77c11e8eb9
commit
b5088a6d9c
6 changed files with 146 additions and 39 deletions
|
@ -505,7 +505,8 @@ public: // Exposed APIs
|
|||
/*!
|
||||
*/
|
||||
std::string encode(const jwt_header& header,
|
||||
const jwt_payload& payload);
|
||||
const jwt_payload& payload,
|
||||
std::error_code& ec);
|
||||
|
||||
/*!
|
||||
*/
|
||||
|
@ -666,6 +667,11 @@ public: // Exposed APIs
|
|||
|
||||
/**
|
||||
*/
|
||||
std::string signature(std::error_code& ec) const;
|
||||
|
||||
/**
|
||||
* Exception throwing version.
|
||||
*/
|
||||
std::string signature() const;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue