docs: @Deprecated
  	void confirmLogin(String token, String username, String password)
  			throws IOException, LoginFailedException, MediaWikiApiErrorException {
  		Map<String, String> params = new HashMap<>();
  		params.put(ApiConnection.PARAM_ACTION, "login");
  		params.put(ApiConnection.PARAM_LOGIN_USERNAME, username);
  		params.put(ApiConnection.PARAM_LOGIN_PASSWORD, password);
  		params.put(ApiConnection.PARAM_LOGIN_TOKEN, token);
  
  		JsonNode root = sendJsonRequest("POST", params);
  
  		String result = root.path("login").path("result").textValue();
  		if (ApiConnection.LOGIN_RESULT_SUCCESS.equals(result)) {
  			this.loggedIn = true;
  			this.username = username;
  			this.password = password;
  		} else {
  			String message = getLoginErrorMessage(result);
  			logger.warn(message);
  			if (ApiConnection.LOGIN_WRONG_TOKEN.equals(result)) {
  				throw new NeedLoginTokenException(message);
  			} else {
  				throw new LoginFailedException(message);
  			}
  		}
  	}