sessions.hpp (41d61c8281ed9af50630c78f0a646e726139fb25) | sessions.hpp (ecd6a3a20ab128ae9d3e356d6250695800dc13be) |
---|---|
1#pragma once 2 3#include "logging.hpp" 4#include "random.hpp" 5#include "utility.hpp" 6 7#include <openssl/rand.h> 8 --- 390 unchanged lines hidden (view full) --- 399 authTokensIt++; 400 } 401 } 402 } 403 } 404 405 SessionStore(const SessionStore&) = delete; 406 SessionStore& operator=(const SessionStore&) = delete; | 1#pragma once 2 3#include "logging.hpp" 4#include "random.hpp" 5#include "utility.hpp" 6 7#include <openssl/rand.h> 8 --- 390 unchanged lines hidden (view full) --- 399 authTokensIt++; 400 } 401 } 402 } 403 } 404 405 SessionStore(const SessionStore&) = delete; 406 SessionStore& operator=(const SessionStore&) = delete; |
407 SessionStore(SessionStore&&) = delete; 408 SessionStore& operator=(const SessionStore&&) = delete; 409 ~SessionStore() = default; |
|
407 408 std::unordered_map<std::string, std::shared_ptr<UserSession>, 409 std::hash<std::string>, 410 crow::utility::ConstantTimeCompare> 411 authTokens; 412 413 std::chrono::time_point<std::chrono::steady_clock> lastTimeoutUpdate; 414 bool needWrite{false}; 415 std::chrono::seconds timeoutInSeconds; 416 AuthConfigMethods authMethodsConfig; 417 418 private: 419 SessionStore() : timeoutInSeconds(1800) 420 {} 421}; 422 423} // namespace persistent_data | 410 411 std::unordered_map<std::string, std::shared_ptr<UserSession>, 412 std::hash<std::string>, 413 crow::utility::ConstantTimeCompare> 414 authTokens; 415 416 std::chrono::time_point<std::chrono::steady_clock> lastTimeoutUpdate; 417 bool needWrite{false}; 418 std::chrono::seconds timeoutInSeconds; 419 AuthConfigMethods authMethodsConfig; 420 421 private: 422 SessionStore() : timeoutInSeconds(1800) 423 {} 424}; 425 426} // namespace persistent_data |