<?php

declare(strict_types=1);

namespace App\Core\Middleware;

use App\Core\Auth;

final class AuthMiddleware implements MiddlewareInterface
{
    public function handle(callable $next): mixed
    {
        Auth::requireLogin();
        return $next();
    }
}
