Open Crysalist opened 4 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Using the middlewear does not work out fo the box
When I installed the latest version the middlewear does not work out of the box with the header refresh tokens. The middle is setup as
Route::group(['middleware' => ['jwt.auth','jwt.refresh']], function () {
The only way I could get it to work was to remove the 'Bearer ' prefix in https://github.com/tymondesigns/jwt-auth/blob/develop/src/Http/Middleware/BaseMiddleware.php / handle the removal clienside.Your environment
Steps to reproduce
Make new project with laravel. Install the latest jwt-auth. add a route with both the 'jwt.auth','jwt.refresh' on it to test. login get token calll route once. get the token in the header response and use that to call same route.
Expected behaviour
Should work with the Authorisation token from the header same as with /login