"use strict";(()=>{var e={};e.id=788,e.ids=[788],e.modules={2934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},8893:e=>{e.exports=require("buffer")},4770:e=>{e.exports=require("crypto")},6162:e=>{e.exports=require("stream")},1764:e=>{e.exports=require("util")},3845:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>x,staticGenerationAsyncStorage:()=>d});var n={};r.r(n),r.d(n,{GET:()=>p});var s=r(9303),a=r(8716),o=r(670),i=r(7070),u=r(5456);async function p(){let e=await (0,u.PR)();return e?i.NextResponse.json({user:e}):i.NextResponse.json({error:"Not authenticated"},{status:401})}let c=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/auth/me/route",pathname:"/api/auth/me",filename:"route",bundlePath:"app/api/auth/me/route"},resolvedPagePath:"/Users/jakeshore/.clawdbot/workspace/oskv-dashboard/src/app/api/auth/me/route.ts",nextConfigOutput:"",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:x}=c,m="/api/auth/me/route";function h(){return(0,o.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:d})}},5456:(e,t,r)=>{r.d(t,{PR:()=>u,fT:()=>i});var n=r(1482),s=r.n(n),a=r(1615);let o=process.env.JWT_SECRET||"fallback-secret";function i(e){return s().sign(e,o,{expiresIn:"7d"})}async function u(){let e=await (0,a.cookies)(),t=e.get("token")?.value;return t?function(e){try{return s().verify(e,o)}catch{return null}}(t):null}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[276,972,261],()=>r(3845));module.exports=n})();