mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 23:37:58 -05:00
web_backend: protect jwt cache with a mutex
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <future>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <httplib.h>
|
||||
@ -81,6 +81,7 @@ private:
|
||||
std::unique_ptr<httplib::Client> cli;
|
||||
|
||||
struct JWTCache {
|
||||
std::mutex mutex;
|
||||
std::string username;
|
||||
std::string token;
|
||||
std::string jwt;
|
||||
|
Reference in New Issue
Block a user