layout | title | order | repo |
---|---|---|---|
page |
REST |
6 |
rest |
Simple wrapper around JWT middleware for seamless integration with WTF.
composer require wtf/rest
Create config file jwt.php
:
<?php
declare(strict_types=1);
return [
"path" => "/api",
"passthrough" => ["/api/login"],
"secret" => getenv('APP_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)