/
Shymer123
/
LumenServer
Обзор
Документация
Войти
/
Shymer123
/
LumenServer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Server/SourceFiles/Core/Middleware/AuthMiddleware.h
22 строки
480 B
Shymer123
Initial commit: LumenServer
20 июн 2026, 12:43
20 июн 2026, 12:43
173f14c
Код
Авторство
О чём код?
#ifndef AUTHMIDDLEWARE_H #define AUTHMIDDLEWARE_H #include "Services/TokenService.h" #include "Core/Network/RequestContext.h" namespace Core::Middleware { class AuthMiddleware { public: explicit AuthMiddleware(Services::TokenService& tokenService); bool handle(const std::string& token, Network::RequestContext& ctx); private: Services::TokenService& m_tokenService; }; } // namespace Core::Middleware #endif // AUTHMIDDLEWARE_H