composer require wtf/rest
Create 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\Provider
into your providers list (suit.php
config)jwt_middleware
into your middlewares list (suit.php
config)