2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
yuzu/src/web_service/verify_user_jwt.h

27 lines
673 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2018 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2022-07-15 18:45:35 +01:00
#pragma once
#include <fmt/format.h>
#include "network/verify_user.h"
#include "web_service/web_backend.h"
namespace WebService {
2022-07-18 04:53:44 +01:00
std::string GetPublicKey(const std::string& host);
2022-07-15 18:45:35 +01:00
class VerifyUserJWT final : public Network::VerifyUser::Backend {
public:
VerifyUserJWT(const std::string& host);
~VerifyUserJWT() = default;
Network::VerifyUser::UserData LoadUserData(const std::string& verify_uid,
2022-07-15 18:45:35 +01:00
const std::string& token) override;
private:
std::string pub_key;
};
} // namespace WebService