PageSourceSearch

https://goexpired.com/assets/AuthCallback-JE3lpbNP.js

js goexpired.com collected 2026-10-09 22:42:19 UTC 2,548 bytes, 1 lines download raw bytes

1import{c as g,r as x,j as e,G as p,y as h,h as y,s as b}from"./index-DocTL6Xp.js";const t={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",accent:"#2563EB"},F="'Inter', system-ui, -apple-system, sans-serif";function w(){const s=g(),[l,c]=x.useState(null);return x.useEffect(()=>{document.title="Verifying - GoExpired.com";let o=!1;return(async()=>{var d;try{const r=async()=>{const{data:i,error:n}=await b.auth.getSession();if(n)throw n;return i.session};let a=await r();for(let i=0;!a&&i<10;i++)await new Promise(n=>setTimeout(n,150)),a=await r();if(o)return;if(!a){c("This verification link is invalid or expired. Please sign in again.");return}const u=(d=a.user.user_metadata)==null?void 0:d.pending_tier,f=localStorage.getItem("pendingTier"),m=u||f;m==="pro"||m==="pro_yearly"?s("/complete-upgrade",{replace:!0}):(localStorage.removeItem("pendingTier"),s("/",{replace:!0}))}catch(r){o||c((r==null?void 0:r.message)||"Something went wrong while verifying your email.")}})(),()=>{o=!0}},[s]),e.jsxs("div",{className:"min-h-screen flex flex-col",style:{backgroundColor:t.bg,color:t.ink,fontFamily:F},children:[e.jsx(p,{}),e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 py-12",children:e.jsx("div",{className:"w-full max-w-md",children:e.jsx("div",{className:"rounded-3xl p-8 md:p-10 text-center",style:{backgroundColor:t.surface,border:`1px solid ${t.border}`,boxShadow:"0 1px 2px rgba(26,26,26,0.04), 0 8px 32px -16px rgba(26,26,26,0.08)"},children:l?e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"text-2xl md:text-3xl tracking-tight mb-3",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Verification failed"}),e.jsx("p",{className:"text-sm mb-6",style:{color:t.inkMuted},children:l}),e.jsx("button",{onClick:()=>s("/auth"),className:"h-11 px-6 rounded-full text-sm font-medium",style:{backgroundColor:t.accent,color:"#FFFFFF",boxShadow:"0 4px 14px -4px rgba(37, 99, 235, 0.45)"},children:"Back to sign in"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full mb-6",style:{backgroundColor:`${t.accent}10`},children:e.jsx(h,{className:"w-6 h-6 animate-spin",style:{color:t.accent}})}),e.jsx("h1",{className:"text-2xl md:text-3xl tracking-tight mb-3",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Verifying your email"}),e.jsx("p",{className:"text-sm",style:{color:t.inkMuted},children:"Hang tight - we're getting your account ready."})]})})})}),e.jsx(y,{})]})}export{w 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.