summaryrefslogtreecommitdiff
path: root/src/web_service/verify_user_jwt.h
diff options
context:
space:
mode:
authorGravatar liamwhite2022-07-25 18:31:45 -0400
committerGravatar GitHub2022-07-25 18:31:45 -0400
commit1e67d2b59f6dfd561768db3fb9a8e0c6a16ec9f2 (patch)
tree999411f1ca76390654d1034c6d0bd2c47c3f101c /src/web_service/verify_user_jwt.h
parentMerge pull request #8564 from lat9nq/dinner-fork (diff)
parentnetwork: Address review comments (diff)
downloadyuzu-1e67d2b59f6dfd561768db3fb9a8e0c6a16ec9f2.tar.gz
yuzu-1e67d2b59f6dfd561768db3fb9a8e0c6a16ec9f2.tar.xz
yuzu-1e67d2b59f6dfd561768db3fb9a8e0c6a16ec9f2.zip
Merge pull request #8541 from FearlessTobi/multiplayer-part1
yuzu, network: Add room service and UI configuration
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