-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
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
"Auth guard [tymon.jwt] is not defined" with adldap2-laravel #120
Comments
But isn't this required per https://laravel-jwt-auth.readthedocs.io/en/latest/quick-start/#configure-auth-guard ? 🤔 Or what's your use-case to avoid this? |
It isn't required as per the docs, but you need to specify your use-case as per @mfn mentioned. |
Tried to update laravel and got similar error Auth driver [jwt] for guard [api] is not defined. |
Can you both share your My guard is in that way and is working fine:
And this is my composer package version (actual version is tagging to 1.4.1):
|
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'jwt',
'provider' => 'users',
'hash' => false,
],
],
|
I got same error after upgrading to Laravel 9.x and switched to this package. @Geoffry304 did you got it working? |
Any update about that? I'll wait, within one week we'll close due to inactivity. |
Hello, Sorry for my late response. The problem is still there, this is my laravel.log
|
Can you try without that, so we can make sure it's not related to that? |
Ok, that did the trick, when I try without it its working. |
Thanks for testing/confirming! I took the liberty and adapt the title of the issue, since you're OP and this is specific to your case. Since we see this library a drop-in replacement, I consider it's still on us to fix this. Must be something badly interacting with the booting of providers maybe or something, IDK. I'm not a user of this other lib and don't have cycles to play around with this. Maybe you can do some more debugging? |
Hi, I'm facing the same issue. I'm using Laravel 9, and this error is appearing. |
Subject of the issue
Auth guard [tymon.jwt] is not defined.
I got this error after upgrading to L9 and changing from tymon/jwt-auth, any idea why this is happening?
When I rollback to old package and previous version everything is working.
I can fix the problem by adding this to the auth.php config file, but this is not what I want.
'tymon' => [ 'jwt' => [ 'driver' => 'jwt', 'provider' => 'users', ] ]
Your environment:
The text was updated successfully, but these errors were encountered: