#include "google_apis/gaia/oauth2_id_token_decoder.h"
#include <memory>
#include <optional>
#include <string_view>
#include "base/base64url.h"
#include "base/containers/contains.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/strings/string_split.h"
#include "base/values.h"
namespace {
const char kChildAccountServiceFlag[] = …;
const char kAdvancedProtectionAccountServiceFlag[] = …;
const char kServicesKey[] = …;
std::optional<base::Value::Dict> DecodeIdToken(const std::string id_token) { … }
bool GetServiceFlags(const std::string id_token,
std::vector<std::string>* out_service_flags) { … }
}
namespace gaia {
TokenServiceFlags ParseServiceFlags(const std::string& id_token) { … }
}