"use strict";(()=>{var e={};e.id=7716,e.ids=[7716],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")},16253:(e,t,o)=>{o.r(t),o.d(t,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>g,staticGenerationAsyncStorage:()=>x});var r={};o.r(r),o.d(r,{GET:()=>p,POST:()=>c});var n=o(49303),s=o(88716),a=o(60670),i=o(87070),u=o(70446);async function p(){return(await (0,u.Gg)()).destroy(),i.NextResponse.redirect(new URL("/",process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000"))}async function c(){return(await (0,u.Gg)()).destroy(),i.NextResponse.json({success:!0})}let l=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/auth/logout/route",pathname:"/api/auth/logout",filename:"route",bundlePath:"app/api/auth/logout/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/api/auth/logout/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:d,staticGenerationAsyncStorage:x,serverHooks:g}=l,m="/api/auth/logout/route";function h(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:x})}},70446:(e,t,o)=>{o.d(t,{Gg:()=>i,dx:()=>s,l7:()=>a,yK:()=>u});var r=o(78632),n=o(71615);let s={password:process.env.SESSION_SECRET,cookieName:"baboon-session",cookieOptions:{secure:!0,httpOnly:!0,sameSite:"lax",maxAge:604800}},a={...s,cookieName:"baboon-admin-session"};async function i(){let e=await (0,n.cookies)();return(0,r.iW)(e,s)}async function u(){let e=await (0,n.cookies)();return(0,r.iW)(e,a)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var o=e=>t(t.s=e),r=t.X(0,[8948,3314,8632,5972],()=>o(16253));module.exports=r})();