protected function hasBasicAuth($request) : bool
  {
    if ($request->headers->has('Authorization') && starts_with($request->header('Authorization'), 'Basic ')) {
      return true;
    }

    return false;
  }