PageSourceSearch

https://portal.commoninterest.com/assets/sso-DpUkBnUw.js

js commoninterest.com collected 2026-09-24 13:27:27 UTC 1,043 bytes, 1 lines download raw bytes

1import{r,j as e}from"./elements-DVh2jUIM.js";import{x as f,A as j,j as c,k as v,R as y}from"./index-DeQvL4I7.js";import"./grids-DXrfAsUA.js";import"./startOfDay-AazlW55I.js";function L(){const n=f(),[s]=j(),[m,x]=r.useState(!0),[l,p]=r.useState(!1),g=c(t=>t.setToken),d=c(t=>t.setLastLoginDate),u=s.get("redirectUrl")??"/",o=s.get("token"),a=s.get("companyId"),i=s.get("hmac");return r.useEffect(()=>{if(!o||!a||!i)return n("/not-found");v.loginBySSO({companyId:a,token:o,hmac:i}).then(({token:t,lastLoginDate:h})=>t?(d(h??void 0),g(t)):Promise.reject(new Error("Invalid login"))).then(()=>n(u)).catch(()=>{p(!0),x(!1)})},[]),e.jsxs(e.Fragment,{children:[m&&e.jsx("div",{className:"max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8",children:e.jsx("div",{className:"text-center",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-800",children:"We're logging you in..."})})}),l&&e.jsx("div",{className:"max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8",children:e.jsx(y,{to:"/server-error"})})]})}export{L as Component};

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.