generated from Sithas/conan_template
24 lines
386 B
C++
24 lines
386 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
#include "../entities/user.h"
|
|
|
|
namespace uad
|
|
{
|
|
class IAuthDAO
|
|
{
|
|
public:
|
|
virtual std::string Login(
|
|
const std::string& registrated_user_uuid,
|
|
const std::string& auth_token) = 0;
|
|
|
|
virtual bool HasAuthorized(const std::string& auth_token) = 0;
|
|
|
|
virtual bool Logout(const std::string& user_token) = 0;
|
|
|
|
virtual ~IAuthDAO() = default;
|
|
};
|
|
}
|