mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
improve rsa verify with output
This commit is contained in:
@@ -55,7 +55,12 @@ YwIDAQAB
|
||||
rsa_pub_key, rsa_priv_key, "", ""))
|
||||
.with_issuer("auth0");
|
||||
|
||||
auto decoded_token = jwt::decode(token);
|
||||
auto decoded = jwt::decode(token);
|
||||
|
||||
verify.verify(decoded_token);
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user