mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
🔭 Allow generic access to JWT header and payload (#251)
* boost print header claims * type * update other example * lint * update example * update example * update examples * tidy * renaming to clarity * delete old check in traits * return underlying type
This commit is contained in:
@@ -33,8 +33,8 @@ K9EDZi0mZ7VUeeNKq476CU5X940yusahgneePQrDMF2nWFEtBCOiXQ==
|
||||
|
||||
verify.verify(decoded);
|
||||
|
||||
for (auto& e : decoded.get_header_claims())
|
||||
std::cout << e.first << " = " << e.second.to_json() << std::endl;
|
||||
for (auto& e : decoded.get_payload_claims())
|
||||
std::cout << e.first << " = " << e.second.to_json() << std::endl;
|
||||
for (auto& e : decoded.get_header_json())
|
||||
std::cout << e.first << " = " << e.second << std::endl;
|
||||
for (auto& e : decoded.get_payload_json())
|
||||
std::cout << e.first << " = " << e.second << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user