PageSourceSearch

https://gogen.io/assets/AuthCallbackPage-BinUInh7.js

js gogen.io collected 2026-09-25 22:45:35 UTC 1,722 bytes, 2 lines download raw bytes

1import{e as h,b as g,c as p,j as e}from"./index-NwaBE04M.js";import{r as n}from"./monaco-Dnyb3Oxa.js";const j=()=>{const[t]=h(),r=g(),{handleCallback:o,isAuthenticated:c}=p(),[i,a]=n.useState(null),s=n.useRef(!1);return n.useEffect(()=>{if(s.current)return;if(c){r("/",{replace:!0});return}const l=t.get("code"),u=t.get("state"),d=t.get("error"),x=t.get("error_description");if(d){a(x||d);return}if(!l||!u){a("Missing required parameters. Please try logging in again.");return}s.current=!0,o(l,u).then(()=>{r("/",{replace:!0})}).catch(m=>{console.error("OAuth callback error:",m),a(m.message||"Authentication failed. Please try again."),s.current=!1})},[t,o,r,c]),i?e.jsx("div",{className:"container mx-auto px-4 py-16",children:e.jsxs("div",{className:"max-w-md mx-auto bg-white rounded-lg shadow-md p-8",children:[e.jsx("h1",{className:"text-2xl font-bold text-red-600 mb-4 text-center",children:"Authentication Error"}),e.jsx("p",{className:"text-gray-600 mb-6 text-center",children:i}),e.jsx("button",{onClick:()=>r("/login",{replace:!0}),className:"w-full bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Login"})]})}):e.jsx("div",{className:"container mx-auto px-4 py-16",children:e.jsxs("div",{className:"max-w-md mx-auto bg-white rounded-lg shadow-md p-8 text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-900 mx-auto mb-6"}),e.jsx("h1",{className:"text-xl font-semibold text-gray-800 mb-2",children:"Completing sign in..."}),e.jsx("p",{className:"text-gray-600",children:"Please wait while we complete your authentication."})]})})};export{j as default};
2//# sourceMappingURL=AuthCallbackPage-BinUInh7.js.map

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.