@@ -9,13 +9,10 @@ |
||
9 | 9 | |
10 | 10 | namespace App\Http\Controllers; |
11 | 11 | |
12 | -use App\Models\User; |
|
13 | 12 | use App\Models\Article; |
14 | 13 | use App\Services\TokenAuth; |
15 | -use Illuminate\Contracts\Events\Dispatcher; |
|
16 | 14 | use Illuminate\Contracts\View\View; |
17 | 15 | use Illuminate\Contracts\Auth\Guard; |
18 | -use Tymon\JWTAuth\Providers\JWT\JWTInterface; |
|
19 | 16 | |
20 | 17 | /** |
21 | 18 | * Class HomeController. |
@@ -10,15 +10,11 @@ |
||
10 | 10 | |
11 | 11 | use App\Models\User; |
12 | 12 | use App\Services\TokenAuth; |
13 | -use Illuminate\Support\Arr; |
|
14 | 13 | use Illuminate\Http\Request; |
15 | 14 | use Illuminate\Http\Response; |
16 | 15 | use Illuminate\Contracts\Auth\Guard; |
17 | -use Tymon\JWTAuth\Exceptions\JWTException; |
|
18 | 16 | use Illuminate\Contracts\Container\Container; |
19 | -use Tymon\JWTAuth\Providers\JWT\JWTInterface; |
|
20 | 17 | use Illuminate\Contracts\Auth\Authenticatable; |
21 | -use Tymon\JWTAuth\Exceptions\TokenExpiredException; |
|
22 | 18 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
23 | 19 | use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; |
24 | 20 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use GraphQL\Type\Definition\Type; |
15 | 15 | use App\GraphQL\Types\AuthUserType; |
16 | 16 | use GraphQL\Type\Definition\ObjectType; |
17 | -use App\GraphQL\Serializers\UserSerializer; |
|
18 | 17 | use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; |
19 | 18 | |
20 | 19 | /** |