MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / encode

Method encode

include/jwt/jwt.hpp:438–441  ·  view source on GitHub ↗

* Get the URL safe base64 encoded string * of the header. */ TODO: error code ?

Source from the content-addressed store, hash-verified

436 */
437 //TODO: error code ?
438 std::string encode(bool pprint = false)
439 {
440 return base64_encode(pprint);
441 }
442
443 /**
444 * Decodes the base64 encoded string to JWT header.

Callers 2

basic_decode_testFunction · 0.45
basic_sign_testFunction · 0.45

Calls 1

base64_encodeFunction · 0.85

Tested by 2

basic_decode_testFunction · 0.36
basic_sign_testFunction · 0.36