summaryrefslogtreecommitdiff
path: root/src/web_service/verify_user_jwt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/web_service/verify_user_jwt.h')
-rw-r--r--src/web_service/verify_user_jwt.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/web_service/verify_user_jwt.h b/src/web_service/verify_user_jwt.h
new file mode 100644
index 000000000..27b0a100c
--- /dev/null
+++ b/src/web_service/verify_user_jwt.h
@@ -0,0 +1,26 @@
1// SPDX-FileCopyrightText: Copyright 2018 Citra Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include <fmt/format.h>
7#include "network/verify_user.h"
8#include "web_service/web_backend.h"
9
10namespace WebService {
11
12std::string GetPublicKey(const std::string& host);
13
14class VerifyUserJWT final : public Network::VerifyUser::Backend {
15public:
16 VerifyUserJWT(const std::string& host);
17 ~VerifyUserJWT() = default;
18
19 Network::VerifyUser::UserData LoadUserData(const std::string& verify_uid,
20 const std::string& token) override;
21
22private:
23 std::string pub_key;
24};
25
26} // namespace WebService