From 08c343bbe6ff1f8a967dbdcb4e89b6b2e8e6a146 Mon Sep 17 00:00:00 2001 From: Sergey Populov Date: Sat, 13 Jan 2024 03:07:30 +0500 Subject: [PATCH] Fix JWT auth --- composer.json | 2 +- src/Api/ForgotPasswordApiController.php | 1 - src/Api/JWTAuthApiController.php | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ed17823..3e9cc6c 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ }, "extra": { "branch-alias": { - "dev-master": "4.x-dev" + "dev-master": "5.x-dev" }, "laravel": { "providers": [ diff --git a/src/Api/ForgotPasswordApiController.php b/src/Api/ForgotPasswordApiController.php index dcd8f42..f082c2e 100644 --- a/src/Api/ForgotPasswordApiController.php +++ b/src/Api/ForgotPasswordApiController.php @@ -24,7 +24,6 @@ class ForgotPasswordApiController extends Controller */ public function __construct() { - parent::__construct(); $this->middleware('guest'); } diff --git a/src/Api/JWTAuthApiController.php b/src/Api/JWTAuthApiController.php index 7b6907f..0cf318d 100644 --- a/src/Api/JWTAuthApiController.php +++ b/src/Api/JWTAuthApiController.php @@ -10,7 +10,7 @@ use Saritasa\LaravelControllers\Responses\ResponsesTrait; use Symfony\Component\HttpKernel\Exception\HttpException; use Tymon\JWTAuth\Exceptions\JWTException; -use Tymon\JWTAuth\JWTGuard; +use Tymon\JWTAuth\JWTAuth; /** * Authenticate API Controller. Uses JWT authentication. @@ -22,14 +22,14 @@ class JWTAuthApiController extends Controller /** * Jwt auth service. * - * @var JWTGuard + * @var JWTAuth */ protected $jwtAuth; /** * Authenticate API Controller. Uses JWT authentication. */ - public function __construct(JWTGuard $jwtAuth) + public function __construct(JWTAuth $jwtAuth) { $this->jwtAuth = $jwtAuth; }