Laravel 6 passport returns 400 Bad request on wrong credential
Finally i found the problem, the problem is back to league/oauth2-server which that used by Laravel passport.
They changed response from 401 to 400 in version 8.
PR link
I changed my code in login section to this.
switch ($e->getCode()) {
case 400:
case 401:
return response()->json('Your credentials are incorrect. Please try again', $e->getCode());
break;
default:
return response()->json('Something went wrong on the server', $e->getCode());
}