refactor: remove redundant guard from logout controller

The guard is now in the Logout use case. Controller just passes the raw cookie value through.
This commit is contained in:
Yisroel Baum 2026-05-17 10:09:42 +03:00
parent c6306af73b
commit e2b69632f6
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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);