PageSourceSearch

https://app.lightforth.ai/assets/SocialCallback-COpSr5yI.js

js lightforth.ai collected 2026-10-05 14:32:39 UTC 1,469 bytes, 1 lines download raw bytes

1import{j as v}from"./vendor-framer-ClWzCgvD.js";import{ah as T,ai as b,ax as C,P}from"./index-WcUoZlI5.js";import{m as w,u as y,f as I,r as t}from"./vendor-react-2j6yV8Jr.js";import{c as L}from"./post-auth-redirect-BB1gbsiP.js";import"./vendor-redux-DJ9A5OZ5.js";import"./vendor-pdf-BOWvJLqn.js";import"./vendor-crypto-DQupkzQr.js";import"./vendor-utils-DDFzQFyO.js";import"./vendor-forms-evnTL-bZ.js";import"./vendor-analytics-CkykDcwN.js";const H=()=>{const{showAlert:n}=T(),{id:i}=w(),r=y(),l=I().search,{setTokens:u}=b(),{isLoading:A,data:c,error:s}=C({query:l,path:`v2/${i==null?void 0:i.replace("-","/")}`},{skip:!l}),o=t.useCallback(e=>{n(e||"Authentication failed","error"),r("/auth/login",{replace:!0,state:{error:e}})},[r,n]),p=t.useCallback(e=>{var m,f,d,h,x;if((f=(m=e==null?void 0:e.response)==null?void 0:m.data)!=null&&f.token){const{accessToken:a,refreshToken:j}=e.response.data.token,g=30*24*60*60,E=Date.now()+g*1e3;u({accessToken:a,refreshToken:j,expiresIn:g,expirationTime:E}),r(L()||"/overview",{replace:!0})}else{const a=((h=(d=e==null?void 0:e.response)==null?void 0:d.data)==null?void 0:h.message)||((x=e==null?void 0:e.error)==null?void 0:x.message)||"Invalid authentication response";o(a)}},[u,r,o]);return t.useEffect(()=>{s&&o((s==null?void 0:s.message)||"Authentication failed")},[s,o]),t.useEffect(()=>{c&&p(c)},[c,p]),A?v.jsx("div",{className:"h-screen flex items-center justify-center",children:v.jsx(P,{})}):null};export{H 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.