1import{d as l,o as _,c as r,t as d,u as m,a as p,r as f,b as o}from"./index-DD1dAoRG.js";import{u as h}from"./useAuth-BKMgKPZT.js";const g={class:"flex items-center justify-center min-h-screen bg-surface"},y={key:0,class:"text-red-500 text-sm"},x={key:1,class:"text-text-muted text-sm"},q=l({__name:"AuthCallback",setup(k){const n=m(),e=p(),{handleCallback:c,login:u}=h(),t=f("");return _(async()=>{const s=e.query.code,a=e.query.state;if(!s){if(e.query.error_description){t.value=e.query.error_description;return}sessionStorage.setItem("auth_return_to","/email-dashboard"),u();return}if(await c(s,a)){const i=sessionStorage.getItem("auth_return_to")||"/";sessionStorage.removeItem("auth_return_to"),n.replace(i)}else t.value="Authentication failed"}),(s,a)=>(o(),r("div",g,[t.value?(o(),r("p",y,d(t.value),1)):(o(),r("p",x,"Signing in..."))]))}});export{q 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.