Path: blob/master/phs/ola-otpbypass/index_files/refreshtoken.eb48880c.js.download
996 views
"use strict";Vue.component("refreshtoken",{render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"refresh__wrapper"},[t.owRegistry["ow-ajax"]?r("ow-ajax",{attrs:{url:"/api/token/refresh",method:"POST",body:t.payload,trigger:t.triggerRefresh},on:{success:t.refreshToken}}):t._e(),t._v(" "),t.owRegistry["ow-toast"]?r("ow-toast",{attrs:{"toast-type":t.toast.type,content:t.toast.content,"show-toast":t.toast.show},on:{close:t.closeToast}}):t._e()],1)},staticRenderFns:[],name:"refreshtoken",data:function(){return{toast:{show:!1,type:"",content:""},triggerRefresh:"dormant",payload:{liteParams:window.params}}},mounted:function(){this.triggerRefresh="fire"},methods:{closeToast:function(){this.toast.show=!1,this.toast.type="",this.toast.content=""},refreshToken:function(t){t.response&&("SUCCESS"===t.response.status?this.returnurl&&-1<window.owConfig.domainList.indexOf(this.extractHostname(this.returnurl))?window.location.href=this.returnurl:this.toast={show:!0,type:"warning",content:"Invalid domain"}:"FAILURE"===t.response.status&&t.response.loginRequired&&this.$router.replace({path:"/",query:this.$route.query}))}},computed:{returnurl:function(){return this.$route.query&&this.$route.query.returnurl}}}); //# sourceMappingURL=../sourcemap/pages/refreshtoken.eb48880c.js.map