PedroGuaillas's avatar

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'); }

0 likes
0 replies

Please or to participate in this conversation.