1import{j as s,J as l,s as h,b as m,t as p}from"./index-C3IesLzV.js";import{u as f,r as g}from"./vendor-BOYdj2Dv.js";import{r as w,c as x}from"./authRedirect-ZiGVL7GY.js";const R=5,A=300;function j(){const t=f();return g.useEffect(()=>{let a=!1;return(async()=>{try{const e=window.location.hash,i=new URLSearchParams(e.startsWith("#")?e.substring(1):e),n=i.get("error_description")||i.get("error");if(n){l.error(decodeURIComponent(n)),t("/login",{replace:!0});return}let r=null;for(let o=0;o<R&&!a;o++){const{data:{session:c}}=await h.auth.getSession();if(c){r=c.user;break}await new Promise(d=>setTimeout(d,A))}if(a)return;m(r)&&p(r?.id,r?.email);const u=w({search:window.location.search});x();try{window.history.replaceState({},document.title,window.location.pathname)}catch{}t(u,{replace:!0})}catch(e){console.error("Auth callback error:",e),l.error("Authentication failed. Please try again."),t("/login",{replace:!0})}})(),()=>{a=!0}},[t]),s.jsx("main",{className:"min-h-screen grid place-items-center p-8",children:s.jsx("div",{className:"text-center space-y-2",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Signing you inâ¦"})})})}export{j 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.