Changed decode function signature

This commit is contained in:
Arun M 2017-12-05 16:02:54 +05:30
parent 09bc72c9f7
commit a4a4bd5dff
6 changed files with 124 additions and 14 deletions
include/jwt/test

View file

@ -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()