#pragma once #include "db.hpp" #include "session_repo_base.hpp" class PgSessionRepo : public ISessionRepo { public: PgSessionRepo(PgPool& pool, int ttl_seconds) : pool_(pool), ttl_(ttl_seconds) {} Created create(const std::string& user_id) override; std::optional lookup(const std::string& token) override; bool revoke(const std::string& token) override; private: PgPool& pool_; int ttl_; };