MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / get_algorithm

Method get_algorithm

include/jwt-cpp/jwt.h:2949–2949  ·  view source on GitHub ↗

* Get algorithm claim * \return algorithm as string * \throw std::runtime_error If claim was not present * \throw std::bad_cast Claim was present but not a string (Should not happen in a valid token) */

Source from the content-addressed store, hash-verified

2947 * \throw std::bad_cast Claim was present but not a string (Should not happen in a valid token)
2948 */
2949 typename json_traits::string_type get_algorithm() const { return get_header_claim("alg").as_string(); }
2950 /**
2951 * Get type claim
2952 * \return type as a string

Callers

nothing calls this directly

Calls 1

as_stringMethod · 0.45

Tested by

no test coverage detected