1 #ifndef JWT_CPP_NLOHMANN_JSON_DEFAULTS_H
2 #define JWT_CPP_NLOHMANN_JSON_DEFAULTS_H
4 #ifndef JWT_DISABLE_PICOJSON
5 #define JWT_DISABLE_PICOJSON
17 using claim = basic_claim<traits::nlohmann_json>;
23 inline verifier<default_clock, traits::nlohmann_json>
verify() {
24 return verify<default_clock, traits::nlohmann_json>(default_clock{});
30 inline builder<traits::nlohmann_json>
create() {
return builder<traits::nlohmann_json>(); }
32 #ifndef JWT_DISABLE_BASE64
40 inline decoded_jwt<traits::nlohmann_json>
decode(
const std::string& token) {
41 return decoded_jwt<traits::nlohmann_json>(token);
56 template<
typename Decode>
68 return jwk<traits::nlohmann_json>(token);
78 return jwks<traits::nlohmann_json>(token);
85 using verify_context = verify_ops::verify_context<traits::nlohmann_json>;
88 #endif // JWT_CPP_NLOHMANN_JSON_DEFAULTS_H