1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5577],{88575:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/callback",function(){return t(55265)}])},55265:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var i=t(85893),o=t(67294),r=t(11163),s=t(69778);function a(){const e=(0,r.useRouter)(),n=(0,s.createClient)(),[t,a]=(0,o.useState)("Completing sign-in...");return(0,o.useEffect)((()=>{if(!e.isReady)return;(async()=>{try{var t;const i=null!==(t=e.query.next)&&void 0!==t?t:e.query.redirect_to,o="signup"===e.query.type?"/onboarding":"/app",r="string"===typeof i&&i.length>0?decodeURIComponent(i):o,{code:s}=e.query;if("string"===typeof s&&s.length>0){const{error:e}=await n.auth.exchangeCodeForSession(s);if(e)throw e;return void window.location.assign(r)}const u=e.query.token_hash,{type:c}=e.query;if("string"===typeof u&&"string"===typeof c){const{data:e,error:t}=await n.auth.verifyOtp({token_hash:u,type:c});if(t)throw t;if(e.session)return void window.location.assign(r)}const{data:d}=await n.auth.getSession();if(d.session)return void window.location.assign(r);a("Could not complete sign-in. Redirecting..."),window.location.assign("/auth")}catch(i){console.error("Auth callback error:",i),a("Sign-in failed. Redirecting..."),window.location.assign("/auth")}})()}),[e.isReady,e.query,n.auth]),(0,i.jsx)("div",{className:"min-h-screen flex items-center justify-center p-6",children:(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:t})})}}},function(e){e.O(0,[9774,2888,179],(function(){return n=88575,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.