tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.29k stars 1.54k forks source link

can't run graphQL #2183

Open fahjan opened 2 years ago

fahjan commented 2 years ago

Subject of the issue

Tymon\JWTAuth\Blacklist::__construct(): Argument #1 ($storage) must be of type Tymon\JWTAuth\Contracts\Providers\Storage, PHPOpenSourceSaver\JWTAuth\Providers\Storage\Illuminate given, called in /vendor/tymon/jwt-auth/src/Providers/AbstractServiceProvider.php on line 284"

Your environment

Q A
Bug? yes
New Feature? no
Framework Laravel

| Package version | 1.x.y | PHP version | 8.1

Screen Shot 2022-05-21 at 9 17 44 PM

mfn commented 2 years ago

Tymon\JWTAuthPHPOpenSourceSaver\JWTAuth

You're mixing up two different packages. Whilst, due to the renamed namespace, technically both can co-exist, I doubt the can be used simultaneously as they're supposed to fill in for the same feature.

Either only use Tymon\JWTAuth or only use PHPOpenSourceSaver\JWTAuth please.

fahjan commented 2 years ago

Screen Shot 2022-05-21 at 10 23 07 PM

your code in abstract class her. how can i use only Tymon\JWTAuth .

FYI. i use this https://github.com/bagisto/headless-ecommerce