"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.signout = void 0;
const EXPIRATION_ENDPOINT = 'club/v1/forwarder/expiration';
const signout = function () {
  let {
    club: {
      id: clubId
    } = {},
    language
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  if (!clubId || !language) return;
  document.location.href = "".concat(process.env.SERVICE_USER, "/").concat(EXPIRATION_ENDPOINT, "?idClub=").concat(clubId, "&lang=").concat(language);
};
exports.signout = signout;
//# sourceMappingURL=signout.js.map