PageSourceSearch

https://app.abcinvoice.eu/_nuxt/BEyB61bz.js

js abcinvoice.eu collected 2026-10-08 19:56:57 UTC 2,455 bytes, 1 lines download raw bytes

1import{l as p,h as y,g as k,f as w,m as b,c as E,a as h,t as g,o as q}from"./cFqdfEOq.js";import{u as v}from"./CxGUDrBz.js";const x={class:"flex min-h-[80vh] items-center justify-center"},C={class:"w-full max-w-md rounded-lg bg-white p-8 text-center shadow"},U={class:"mb-4 text-2xl font-bold"},S={class:"text-gray-600"},N={__name:"confirm",setup(R){const i=p(),n=v(),s=y(),o=k(),{t}=w();return b(async()=>{try{console.log("URL query params:",o.query);const r=o.query.access_token,c=o.query.refresh_token,f=o.query.token,d=o.query.token_hash,a=o.query.type,u=o.query.code,l=o.query.error,m=o.query.error_description;if(l)throw console.error("Auth error from URL:",l,m),new Error(m||l);if(r&&c){console.log("Using access/refresh tokens method");const{error:e}=await i.auth.setSession({access_token:r,refresh_token:c});if(e)throw e;n.success(t("auth.email_confirmed_notification")),s.push("/onboarding/billing");return}if(u){console.log("Using authorization code method");try{const{error:e}=await i.auth.exchangeCodeForSession(u);if(e)throw console.error("PKCE exchange error:",e),e;n.success(t("auth.email_confirmed_notification")),s.push("/onboarding/billing");return}catch{console.log("PKCE failed, trying alternative method")}}if(d&&a){console.log("Using token_hash method");const{error:e}=await i.auth.verifyOtp({token_hash:d,type:a});if(e)throw e;n.success(t("auth.email_confirmed_notification")),s.push("/onboarding/billing");return}if(f&&a){console.log("Using simple token method");const{error:e}=await i.auth.verifyOtp({token_hash:f,type:a});if(e)throw e;n.success(t("auth.email_confirmed_notification")),s.push("/onboarding/billing");return}console.log("Checking if user is already authenticated");const{data:{user:_}}=await i.auth.getUser();if(_&&_.email_confirmed_at){console.log("User already confirmed"),n.success(t("auth.email_confirmed_notification")),s.push("/onboarding/billing");return}if(u){console.log("Code present but PKCE failed, redirecting to login with message"),n.success(t("auth.email_confirmed_notification")),s.push("/auth/login");return}throw console.log("No valid confirmation method found"),new Error(t("auth.auth_tokens_not_found_notification"))}catch(r){console.error("Confirmation error:",r),n.error(r.message||t("auth.confirmation_failed")),s.push("/auth/login")}}),(r,c)=>(q(),E("div",x,[h("div",C,[h("h2",U,g(r.$t("auth.confirming_email_title")),1),h("p",S,g(r.$t("auth.please_wait")),1)])]))}};export{N 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.