TIDE/backend/app/Http/Middleware
yisroel ca8a2066de
implement AuthMiddleware
reads auth_token cookie (constant COOKIE_NAME for cross-layer
sharing with the AuthController). missing/empty cookie or
unknown token -> 401 json {error: unauthenticated}. expired
session is deleted then 401 returned. valid session attaches
the User entity to request attributes under 'user' so
downstream controllers can read it via request attributes. 37
tests pass.
2026-05-06 15:16:59 +03:00
..
AuthMiddleware.php implement AuthMiddleware 2026-05-06 15:16:59 +03:00