UNPKG

@europeana/portal

Version:
2 lines 975 B
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1131:function(t,e,o){"use strict";o.r(e);o(21),o(34),o(30);var n={name:"AccountLogoutPage",beforeRouteEnter:function(t,e,o){o((function(t){var o=/^account___[a-z]{2}$/.test(e.name)?"/".concat(t.$i18n.locale):e.fullPath;t.$auth.$storage.setUniversal("redirect",o)}))},layout:"minimal",created:function(){this.$auth.$storage.setUniversal("portalLoggingOut",!0)},mounted:function(){this.$auth.logout({params:{ui_locales:this.$i18n.locale}}),localStorage.setItem("logout-event","logout-".concat(Math.random()));var path=this.$auth.strategies.keycloak.options.end_session_endpoint,t=window.location.origin+this.$auth.$storage.getUniversal("redirect");this.$goto("".concat(path,"?redirect_uri=").concat(encodeURIComponent(t)))}},c=o(59),component=Object(c.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null);e.default=component.exports}}]); //# sourceMappingURL=2c358cc.js.map