PageSourceSearch

https://www.loaded.ai/assets/c-SsoCallback-DgUn2mTW.js

js loaded.ai collected 2026-10-05 16:21:15 UTC 1,059 bytes, 1 lines download raw bytes

1import{d,u as m,r as s,j as e}from"./c-vendor-react-DxK3Ac_g.js";import{g as p,Y as g,L as h}from"./app.js";import{l as f}from"./c-returnTo-BBwegY1L.js";import{a as x}from"./c-onboarding-4F46TRKW.js";function N(){const[a]=d(),{completeSso:r}=p(),t=m(),[n,o]=s.useState(null),i=s.useRef(!1);return s.useEffect(()=>{if(i.current)return;i.current=!0;const c=a.get("code");if(!c){o("Missing authorization code.");return}const u=f(sessionStorage.getItem("loaded.sso.dest"));r(c).then(async()=>{sessionStorage.removeItem("loaded.sso.dest");let l=!1;try{l=(await x.get()).required}catch{}t(l?"/make-it-yours":u,{replace:!0})}).catch(()=>o("Could not complete sign in."))},[a,r,t]),n?e.jsx("div",{className:"auth",children:e.jsxs("div",{className:"auth__card",children:[e.jsx("h1",{className:"auth__title",children:"Sign in failed"}),e.jsx("p",{className:"auth__error",children:n}),e.jsx(g,{appearance:"raised",variant:"primary",onClick:()=>t("/login",{replace:!0}),children:"Back to sign in"})]})}):e.jsx(h,{label:"Completing sign in…"})}export{N as SsoCallback};

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.