PageSourceSearch

https://devsnoop.com/assets/AuthVerifyView-BGlmY-pF.js

js devsnoop.com collected 2026-10-02 00:16:22 UTC 2,183 bytes, 1 lines download raw bytes

1import{d as _,o as g,X as y,U as h,H as r,E as v,b as a,e as c,f as s,F as l,h as p,u as w,z as V,w as I,K as b,q as z,s as C,y as L,i as R}from"./index-BFbI9vER.js";import{g as D}from"./extension-attribution-2xRPfrGi.js";import{L as E}from"./loader-circle-B8VnXW_y.js";const q={class:"px-4 py-16 sm:px-6 sm:py-24"},T={class:"mx-auto max-w-sm text-center"},A={class:"mt-4 text-zinc-400"},M=_({__name:"AuthVerifyView",setup(B){const m=b(),u=z(),i=C(""),n=f(u.query.redirect),o=D(),d=n.includes("source=extension-popup")||o.source==="extension-popup";g(async()=>{const t=u.query.token;if(!t){i.value="Invalid verification link.";return}try{const e=await y({token:t});h(e.token,e.user),x(),r({workflow:"sign_in",surface:"/auth/verify",step:"magic_link_verified",status:"succeeded",redirect:n}),m.replace(n)}catch{i.value="This link is invalid or has expired. Please request a new sign-in link.",r({workflow:"sign_in",surface:"/auth/verify",step:"magic_link_verified",status:"failed",redirect:n})}});function f(t){return typeof t!="string"||!t.startsWith("/")||t.startsWith("//")?"/pricing":t}function x(){d&&(v.capture("login_completed_from_extension",{method:"magic_link",redirect:n,source:"extension-popup",extensionInstallID:o.extensionInstallID,extensionVersion:o.extensionVersion}),r({workflow:"checkout",surface:"/auth/verify",step:"login_completed_from_extension",status:"succeeded",method:"magic_link",redirect:n,source:"extension-popup",extensionInstallID:o.extensionInstallID,extensionVersion:o.extensionVersion}))}return(t,e)=>{const k=L("RouterLink");return a(),c("div",null,[s("section",q,[s("div",T,[i.value?(a(),c(l,{key:1},[e[2]||(e[2]=s("h1",{class:"font-mono text-2xl font-bold"},"Verification failed",-1)),s("p",A,V(i.value),1),p(k,{to:"/login",class:"mt-6 inline-block rounded-lg bg-primary px-6 py-3 font-mono text-sm font-bold text-zinc-950 no-underline transition-colors hover:bg-primary-400"},{default:I(()=>[...e[1]||(e[1]=[R(" Try again ",-1)])]),_:1})],64)):(a(),c(l,{key:0},[p(w(E),{size:32,class:"mx-auto animate-spin text-primary"}),e[0]||(e[0]=s("p",{class:"mt-4 text-zinc-400"},"Verifying your sign-in link...",-1))],64))])])])}}});export{M 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.