1import{u}from"./ZSn6LpYc.js";import{g as i}from"./D1_MqowL.js";import{d as l,w as s,k as p,a as m,o as _,n as f}from"./CbhbEXF0.js";import{u as d}from"./CPJw7_oI.js";import"./DUMTsfPB.js";import"./wSbNHcIL.js";const y=l({__name:"sign-out",async setup(g){let e,t;const a=d("token"),o=u(),n=p(),c=([e,t]=s(()=>i()),e=await e,t(),e);if(a.value||o.value.access_token){try{[e,t]=s(()=>$fetch("/user/logout",{method:"POST",baseURL:n.public.apiBase,headers:{...c,Authorization:`Bearer ${o.value.access_token||a.value}`}})),await e,t()}catch{}a.value=null,o.value=void 0}return[e,t]=s(()=>f("/auth",{replace:!0})),await e,t(),(r,h)=>(_(),m("section",null,"Log out"))}});export{y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.