composer require wtf/restCreate config file jwt.php:
<?php
declare(strict_types=1);
return [
"path" => "/api",
"passthrough" => ["/api/login"],
"secret" => 'JWT_SECRET',
];Documentation: tuupola/slim-jwt-auth
\Wtf\Rest\Providerinto your providers list (suit.phpconfig)jwt_middlewareinto your middlewares list (suit.phpconfig)