#pragma once #include #include #include class ISessionRepo { public: virtual ~ISessionRepo() = default; struct Created { std::string token; std::int64_t expires_at; // unix-время в секундах UTC }; virtual Created create(const std::string& user_id) = 0; virtual std::optional lookup(const std::string& token) = 0; virtual bool revoke(const std::string& token) = 0; };