You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I believe there is an issue on this function: protected function requestShouldReceiveFreshToken($request) { return $request->isMethod('GET') && $request->user($this->guard); }
in vendor\laravel\passport\src\Http\Middleware\CreateFreshToken.php line : 81
When consuming our API, there is no user, so it is clearly cannot create cookie, why it reaches to this line?
Server version: 10.3.14-MariaDB-1:10.3.14
Description:
Issue is: Laravel_token is not generating when using consume own API
I mentioned more details on: https://stackoverflow.com/questions/56846006/laravel-passport-wont-create-laravel-token-and-then-error-401-unauthenticated-wi
But I believe there is an issue on this function:
protected function requestShouldReceiveFreshToken($request) { return $request->isMethod('GET') && $request->user($this->guard); }
in vendor\laravel\passport\src\Http\Middleware\CreateFreshToken.php line : 81
When consuming our API, there is no user, so it is clearly cannot create cookie, why it reaches to this line?
Steps To Reproduce:
Mentioned at
https://stackoverflow.com/questions/56846006/laravel-passport-wont-create-laravel-token-and-then-error-401-unauthenticated-wi
The text was updated successfully, but these errors were encountered: