PageSourceSearch

https://homegames.lovable.app/assets/Auth-Df04hYjT-1743085711271.js

js homegames.lovable.app collected 2026-10-03 05:35:51 UTC 1,363 bytes, 1 lines download raw bytes

1var g=(i,c,t)=>new Promise((a,o)=>{var h=e=>{try{s(t.next(e))}catch(r){o(r)}},n=e=>{try{s(t.throw(e))}catch(r){o(r)}},s=e=>e.done?a(e.value):Promise.resolve(e.value).then(h,n);s((t=t.apply(i,c)).next())});import{r as l,y as m,h as d,i as p,z as S,s as b,j as y,A}from"./index-CRpzyGIh-1743085711271.js";function I(){var s;const[i,c]=l.useState(!0),t=m(),a=d(),{user:o}=p(),{checkProfile:h}=S(o);l.useEffect(()=>{const{data:{subscription:e}}=b.auth.onAuthStateChange((r,u)=>g(this,null,function*(){var f;console.log("Auth state change in Auth page:",r,(f=u==null?void 0:u.user)==null?void 0:f.email),r==="SIGNED_IN"&&u&&(yield n())}));return()=>{e.unsubscribe()}},[]);const n=()=>g(this,null,function*(){console.log("Handling auth success, current user:",o),c(!1);try{yield h();const e=sessionStorage.getItem("redirectPath");console.log("Redirect path from storage:",e),e&&e!=="/auth"?(sessionStorage.removeItem("redirectPath"),a(e)):a("/nearby-games")}catch(e){console.error("Error during auth success handling:",e),a("/nearby-games")}});return l.useEffect(()=>{var e;(e=t.state)!=null&&e.from&&(console.log("Storing redirect path:",t.state.from),sessionStorage.setItem("redirectPath",t.state.from))},[t]),y.jsx(A,{isOpen:i,onClose:()=>{c(!1),a("/nearby-games")},onSuccess:n,redirectPath:((s=t.state)==null?void 0:s.from)||"/nearby-games"})}export{I 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.