Open abhisheksatre opened 6 years ago
You can use jwt.refresh middleware. Jwt.auth performs auth verification, but it does not have guard information when executed. Only the default guard can be used.
I have the same problem
me too
Same here, i need auth against custom guard
This is also isn't working with the new Laravel versions.
Hello everyone, any news about that? It's almost 3 months and my guards is getting increase and this is start became a code smell.
Any clean solutions?
I am using two guards. (Api and admin).
My route:
Route::post('/dashboard', 'Admin\Controller@create')->middleware('jwt.auth');
Issue: When I pass token to above route, jwt.auth middleware is verifying token using default guard. But I want to verify it via admin guard. How to verify token via custom guard.
Your environment
Expected behaviour
The token should verify via custom guard in middleware.(jwt.auth)
Actual behaviour
The token is getting verified by default guard in middleware.(jwt.auth)