text: "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  const axios_1 = __importDefault(require("axios"));
  exports.default = (email, password, baseURL) => {
      const request = {
          email,
          password
      };
      if (!baseURL.includes('localhost'))
          request['g-recaptcha-response'] = 'empty'; //TODO: Review the captcha
      return axios_1.default
          .post(baseURL + '/login', request, {
          headers: {
              Accept: 'application/json, text/plain, */*',
              Host: baseURL.split('//')[1],
              Origin: baseURL
          }
      })
          .then(res => res.data);
  };
  