Attainly/backend/app/Auth/UseCases/Logout/Logout.php
2026-08-03 19:42:45 +03:00

17 lines
309 B
PHP

<?php
namespace App\Auth\UseCases\Logout;
use App\Auth\SessionRepository;
class Logout
{
public function __construct(
private SessionRepository $sessionRepository,
) {}
public function execute(string $token): void
{
$this->sessionRepository->deleteByToken($token);
}
}