We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+--------------------------+---------+ | Component | Version | +--------------------------+---------+ | PHP | 7.1.23 | | Swoole | 4.2.2 | | LaravelS | 3.5.8 | | Laravel Framework [test] | 5.5.40 | +--------------------------+---------+
I have multiple user providers in config/auth.php:
config/auth.php
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, ], 'users2' => [ 'driver' => 'eloquent', 'model' => App\User2::class, ], 'users3' => [ 'driver' => 'eloquent', 'model' => App\User3::class, ], ], 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'jwt', 'provider' => 'users', ], 'api2' => [ 'driver' => 'jwt', 'provider' => 'users2', ], 'api3' => [ 'driver' => 'jwt', 'provider' => 'users3', ], ]
The requests using user2/user3 provider throw User not found exception from Tymon\JWTAuth\Http\Middleware\BaseMiddleware:71.
user2
user3
User not found
Tymon\JWTAuth\Http\Middleware\BaseMiddleware:71
I have go thru #109, but my issue seems to be a different one.
I guess the solution is to reset the user provider for each auth, but I have no idea how to implement it.
Thanks.
The text was updated successfully, but these errors were encountered:
Resolved.
It's my fault to use same UserProvider for different modules. Use different UserProvider for each module and the issue disappears.
UserProvider
Sorry, something went wrong.
No branches or pull requests
+--------------------------+---------+
| Component | Version |
+--------------------------+---------+
| PHP | 7.1.23 |
| Swoole | 4.2.2 |
| LaravelS | 3.5.8 |
| Laravel Framework [test] | 5.5.40 |
+--------------------------+---------+
I have multiple user providers in
config/auth.php
:The requests using
user2
/user3
provider throwUser not found
exception fromTymon\JWTAuth\Http\Middleware\BaseMiddleware:71
.I have go thru #109, but my issue seems to be a different one.
I guess the solution is to reset the user provider for each auth, but I have no idea how to implement it.
Thanks.
The text was updated successfully, but these errors were encountered: