Closed zhdanovartur closed 6 years ago
API returns 500 HTTP status code on /user/me for unauthenticated requests:
/user/me
{ "error":{ "message": "Unauthenticated.", "status_code": 500 } }
but I expect 401.
The problem is here Use following:
$this->middleware('api.auth', []);
instead of
$this->middleware('auth:api', []);
to fix it.
The correct one is "jwt.auth", closing
API returns 500 HTTP status code on
/user/me
for unauthenticated requests:but I expect 401.