tokenmgr: separate getRandomUUID from registerNewToken
This commit is contained in:
parent
2e763764bf
commit
82a6fba6ec
2 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue