App\Exceptions\OAuthExceptionHandler::unsupportedGrantType PHP Method

unsupportedGrantType() protected method

protected unsupportedGrantType ( League\OAuth2\Server\Exception\OAuthException $e ) : mixed
$e League\OAuth2\Server\Exception\OAuthException
return mixed
    protected function unsupportedGrantType(OAuthException $e)
    {
        return Response::make(['errors' => ['status' => '400', 'code' => 'UnsupportedGrantType', 'title' => 'Unsupported Grant Type', 'detail' => $e->getMessage()]], 400);
    }