From e2b69632f6242e0386ac425a6c0fe434ebe6749b Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sun, 17 May 2026 10:09:42 +0300 Subject: [PATCH] refactor: remove redundant guard from logout controller The guard is now in the Logout use case. Controller just passes the raw cookie value through. --- backend/app/Controllers/AuthController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/app/Controllers/AuthController.php b/backend/app/Controllers/AuthController.php index 560ab23..5cb7c20 100644 --- a/backend/app/Controllers/AuthController.php +++ b/backend/app/Controllers/AuthController.php @@ -64,9 +64,7 @@ class AuthController $cookies = $request->getCookieParams(); $token = $cookies[AuthMiddleware::COOKIE_NAME] ?? null; - if (is_string($token) && $token !== '') { - $this->logout->execute($token); - } + $this->logout->execute($token); $response = new Response(204);