mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-06-04 10:57:41 +00:00
More APIs added to jwt_object
This commit is contained in:
parent
973e7e0249
commit
9abac3c5d7
4 changed files with 33 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue