|
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
|
|
namespace App\Middleware\Auth;
|
|
namespace App\Middleware\Auth;
|
|
|
|
|
|
|
|
use App\Model\User;
|
|
use App\Model\User;
|
|
|
-use Hyperf\HttpServer\Contract\RequestInterface;
|
|
|
|
|
use Phper666\JWTAuth\Exception\TokenValidException;
|
|
use Phper666\JWTAuth\Exception\TokenValidException;
|
|
|
use Phper666\JWTAuth\JWT;
|
|
use Phper666\JWTAuth\JWT;
|
|
|
use Psr\Container\ContainerInterface;
|
|
use Psr\Container\ContainerInterface;
|
|
@@ -23,7 +22,7 @@ class TokenMiddleware implements MiddlewareInterface
|
|
|
protected $container;
|
|
protected $container;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * @Inject
|
|
|
|
|
|
|
+ * @Inject()
|
|
|
* @var JWT
|
|
* @var JWT
|
|
|
*/
|
|
*/
|
|
|
protected $jwt;
|
|
protected $jwt;
|