tokenmgr: separate getRandomUUID from registerNewToken

This commit is contained in:
Vaxry 2024-04-28 18:17:48 +01:00
parent 2e763764bf
commit 82a6fba6ec
2 changed files with 8 additions and 1 deletions

View file

@ -25,6 +25,7 @@ class CUUIDToken {
class CTokenManager {
public:
std::string registerNewToken(std::any data, std::chrono::system_clock::duration expires);
std::string getRandomUUID();
std::shared_ptr<CUUIDToken> getToken(const std::string& uuid);
void removeToken(std::shared_ptr<CUUIDToken> token);