PageSourceSearch

https://stickoapp.com/assets/VerifyEmailPage-DRIA_h4c.js

js stickoapp.com collected 2026-10-02 01:44:56 UTC 1,987 bytes, 1 lines download raw bytes

1import{c as d,b as x,r as o,j as e,H as u,a as f}from"./index-Bo5WDqCi.js";import{N as h,F as j}from"./Footer-Bd6kPvLy.js";const y=({user:n})=>{const[c]=d(),l=x(),s=c.get("token"),[r,t]=o.useState("verifying"),[i,a]=o.useState("Verifying your email...");return o.useEffect(()=>{(async()=>{if(!s){t("error"),a("Invalid or missing verification token.");return}try{await f.post("/api/auth/verify-email",{token:s}),t("success"),a("Email verified successfully! Redirecting to login..."),setTimeout(()=>{l("/login")},3e3)}catch(m){t("error"),a(m.response?.data?.error||"Failed to verify email.")}})()},[s,l]),e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(u,{children:e.jsx("title",{children:"Verify Email - Sticko"})}),e.jsx(h,{user:n}),e.jsx("div",{className:"flex-grow flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-md w-full bg-white p-10 rounded-xl shadow-lg text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Email Verification"}),r==="verifying"&&e.jsx("div",{className:"text-blue-600",children:e.jsx("p",{children:i})}),r==="success"&&e.jsxs("div",{className:"text-green-600",children:[e.jsx("svg",{className:"w-16 h-16 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),e.jsx("p",{className:"font-medium",children:i})]}),r==="error"&&e.jsxs("div",{className:"text-red-600",children:[e.jsx("svg",{className:"w-16 h-16 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),e.jsx("p",{className:"font-medium",children:i}),e.jsx("div",{className:"mt-6",children:e.jsx("a",{href:"/login",className:"text-blue-600 hover:text-blue-500 font-medium",children:"Back to Login"})})]})]})}),e.jsx(j,{})]})};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.