@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
1 lines • 955 B
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[765],{52853:function(e,o,t){"use strict";t.r(o);var n=t(87066),u=t(47041),i=t(11163),r=t(67294),c=t(6761),s=t(1071),a=t(55611),_=t(85893);o.default=function(){var e=(0,i.useRouter)();return(0,r.useEffect)(function(){var o,t=null!==(o=e.query.access_token)&&void 0!==o?o:(0,u.getCookie)("x-auth-cookie");n.Z.get("".concat(a.De.NEXT_PUBLIC_API_BASE_URL,"/auth/logout"),{headers:t?{Authorization:"Bearer ".concat(t)}:{}}).then(function(e){console.log("logout() > response :>> ",e)}),(0,u.deleteCookie)("x-auth-cookie"),(0,u.deleteCookie)("refresh_token"),e.push("/login")},[]),(0,_.jsx)(c.o,{useSidebar:!1,meta:(0,_.jsx)(s.h,{title:"Sign Out",description:"Signing out from the workspace..."})})}},31527:function(e,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(52853)}])}},function(e){e.O(0,[3662,5877,3945,9774,2888,179],function(){return e(e.s=31527)}),_N_E=e.O()}]);