Apr 18, 2020
0
Level 1
Can't refresh Token with tymon/jwt-auth
When the token expires it returns me unauthorized but I need to return the refreshed token.
I have register the following Middleware.
$app->routeMiddleware([ 'auth' => App\Http\Middleware\Authenticate::class, 'jwt.refresh' => Tymon\JWTAuth\Http\Middleware\RefreshToken::class, ]);
On routes I have the following.
$router->group(['middleware' =>['auth', 'jwt.refresh']], function ($router) { $router->get('companies', 'CompanyController@index'); }
Please or to participate in this conversation.