chromium/components/sharing_message/web_push/json_web_token_util.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;
}  // namespace

std::optional<std::string> CreateJSONWebToken(
    const base::Value::Dict& claims,
    crypto::ECPrivateKey* private_key) {}