"use strict";(()=>{var e={};e.id=7603,e.ids=[7603],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},6005:e=>{e.exports=require("node:crypto")},64852:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>x,staticGenerationAsyncStorage:()=>l});var n={};s.r(n),s.d(n,{GET:()=>p});var r=s(49303),o=s(88716),a=s(60670),i=s(87070),u=s(70446);async function p(){try{let e=await (0,u.Gg)();if(e.authenticated&&e.user)return i.NextResponse.json({authenticated:!0,user:{id:e.user.id,name:e.user.name,surname:e.user.surname,email:e.user.email,phone:e.user.phone,phonePrefix:e.user.phonePrefix}});return i.NextResponse.json({authenticated:!1})}catch{return i.NextResponse.json({authenticated:!1})}}let c=new r.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/auth/session/route",pathname:"/api/auth/session",filename:"route",bundlePath:"app/api/auth/session/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/api/auth/session/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:x}=c,m="/api/auth/session/route";function h(){return(0,a.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:l})}},70446:(e,t,s)=>{s.d(t,{Gg:()=>i,dx:()=>o,l7:()=>a,yK:()=>u});var n=s(78632),r=s(71615);let o={password:process.env.SESSION_SECRET,cookieName:"baboon-session",cookieOptions:{secure:!0,httpOnly:!0,sameSite:"lax",maxAge:604800}},a={...o,cookieName:"baboon-admin-session"};async function i(){let e=await (0,r.cookies)();return(0,n.iW)(e,o)}async function u(){let e=await (0,r.cookies)();return(0,n.iW)(e,a)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),n=t.X(0,[8948,3314,8632,5972],()=>s(64852));module.exports=n})();