App\Exceptions\OAuthExceptionHandler::unauthorizedClient PHP Method

unauthorizedClient() protected method

protected unauthorizedClient ( League\OAuth2\Server\Exception\OAuthException $e ) : mixed
$e League\OAuth2\Server\Exception\OAuthException
return mixed
    protected function unauthorizedClient(OAuthException $e)
    {
        return Response::make(['errors' => ['status' => '400', 'code' => 'UnauthorizedClient', 'title' => 'Unauthorized Client', 'detail' => $e->getMessage()]], 400);
    }