mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-23 04:59:16 +00:00
Changed decode function signature
This commit is contained in:
parent
09bc72c9f7
commit
a4a4bd5dff
6 changed files with 124 additions and 14 deletions
include/jwt/test
|
@ -44,7 +44,7 @@ void basic_jwt_object_test()
|
|||
obj3.secret("secret");
|
||||
obj3.header().algo("hs256");
|
||||
|
||||
auto dec_obj = jwt::jwt_decode(obj3.signature(), "secret");
|
||||
auto dec_obj = jwt::decode(obj3.signature(), "secret", algorithms({"hs256"}));
|
||||
}
|
||||
|
||||
void jwt_object_pem_test()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue