public function setAuth(string $username, string $password, string $type = 'basic')
	{
		$this->config['auth'] = [
			$username,
			$password,
			$type,
		];

		return $this;
	}
public function setAuth(string $username, string $password, string $type = 'basic')
	{
		$this->config['auth'] = [
			$username,
			$password,
			$type,
		];

		return $this;
	}
public function setAuth ( string $ username , string $ password , string $ type = 'basic' ) { $ this -> config [ 'auth' ] = [ $ username , $ password , $ type , ] ; return $ this ; }
Set the HTTP Authentication.

@param string $username
@param string $password
@param string $type     basic or digest

@return $this
Set the HTTP Authentication .