#include "components/sharing_message/web_push/json_web_token_util.h"
#include <stdint.h>
#include "base/base64url.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "crypto/ec_private_key.h"
#include "crypto/ec_signature_creator.h"
namespace {
const char kKeyAlg[] = …;
const char kAlgES256[] = …;
const char kKeyTyp[] = …;
const char kTypJwt[] = …;
}
std::optional<std::string> CreateJSONWebToken(
const base::Value::Dict& claims,
crypto::ECPrivateKey* private_key) { … }