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