More APIs added to jwt_object

This commit is contained in:
Arun M 2017-11-23 18:14:32 +05:30
parent 973e7e0249
commit 9abac3c5d7
4 changed files with 33 additions and 4 deletions

View file

@ -34,6 +34,14 @@ void basic_jwt_object_test()
.add_claim("time", 176353563);
std::cout << jwt::to_json_str(obj3.payload(), true) << std::endl;
obj3.remove_claim(std::string{"a"});
std::cout << obj3.payload() << std::endl;
obj3.secret("secret");
obj3.header().algo("hs256");
std::cout << obj3.signature() << std::endl;
}
int main() {