mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +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
|
@ -30,6 +30,19 @@ private:
|
|||
const char* msg_ = nullptr;
|
||||
};
|
||||
|
||||
/**
|
||||
*/
|
||||
class SigningError : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
/**
|
||||
*/
|
||||
SigningError(std::string msg)
|
||||
: std::runtime_error(std::move(msg))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*/
|
||||
class DecodeError final: public std::runtime_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue