UNPKG

@europeana/portal

Version:
2 lines 935 B
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{1060:function(t,e,o){"use strict";o.r(e);o(14);var n={name:"AccountLogoutPage",beforeRouteEnter(t,e,o){o((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(){this.$auth.$storage.setUniversal("portalLoggingOut",!0)},mounted(){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)))}},r=o(40),component=Object(r.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null);e.default=component.exports}}]); //# sourceMappingURL=df6ab60.modern.js.map