"use strict";(()=>{var e={};e.id=1548,e.ids=[1548],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")},71177:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>h,patchFetch:()=>m,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>x,staticGenerationAsyncStorage:()=>l});var a={};s.r(a),s.d(a,{GET:()=>p});var r=s(49303),n=s(88716),o=s(60670),i=s(87070),u=s(71615);async function p(e){try{let e=u.cookies().get("auth-token")?.value;if(!e)return i.NextResponse.json({success:!1,message:"No authentication token found"},{status:401});if((await fetch("https://dev.skyloria-travel.com/api/user/profile",{method:"POST",headers:{Authorization:`${e}`,"Content-Type":"application/json"},body:JSON.stringify({})})).ok)return i.NextResponse.json({success:!0,message:"Token is valid"},{status:200});return i.NextResponse.json({success:!1,message:"Invalid or expired token"},{status:401})}catch(e){return console.error("Token validation error:",e),i.NextResponse.json({success:!1,message:"Token validation failed"},{status:500})}}let c=new r.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/auth/validate/route",pathname:"/api/auth/validate",filename:"route",bundlePath:"app/api/auth/validate/route"},resolvedPagePath:"C:\\Users\\Administrator\\Documents\\sky-i18n\\app\\api\\auth\\validate\\route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:x}=c,h="/api/auth/validate/route";function m(){return(0,o.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:l})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[8948,1615,5972],()=>s(71177));module.exports=a})();