Open mataheri opened 6 years ago
did it return false or 401? I have similar situation
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.
Subject of the issue
I'm going to use JWTAuth to create token from a model. So I used this method:
$token = JWTAuth::fromUser($user);
In my api routes I have:
Route::post('login', 'AuthController@login');
Now I should have access to get user from JWTAuth. Then I use:
$user = JWTAuth::parseToken()->authenticate();
But it returns false.
Your environment