code: private function createAuthFromConfig()
      {
          if (!$this->config->has('http-basic')) {
              return $this->hasAuth = false;
          }
  
          $authConfig = $this->config->get('http-basic');
  
          $host = parse_url($this->url, PHP_URL_HOST);
          if (isset($authConfig[$host])) {
              $this->credentials['username'] = $authConfig[$host]['username'];
              $this->credentials['password'] = $authConfig[$host]['password'];
  
              return $this->hasAuth = true;
          }
  
          return $this->hasAuth = false;
      }
docs: Create the auth params from the configuration file.
  
  @return bool