mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 09:18:33 +00:00
Make secret an optional argument for decode
This commit is contained in:
parent
6c2bbe9ad0
commit
99f3c1db86
6 changed files with 48 additions and 20 deletions
|
@ -59,6 +59,10 @@ struct DecodeErrorCategory: std::error_category
|
|||
return "json parse failed";
|
||||
case DecodeErrc::DuplClaims:
|
||||
return "duplicate claims";
|
||||
case DecodeErrc::KeyNotPresent:
|
||||
return "key not present";
|
||||
case DecodeErrc::KeyNotRequiredForNoneAlg:
|
||||
return "key not required for NONE algorithm";
|
||||
};
|
||||
|
||||
assert (0 && "Code not reached");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue