"use strict";(()=>{var e={};e.id=502,e.ids=[502],e.modules={145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},6249:(e,t)=>{Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},8930:(e,t,n)=>{n.r(t),n.d(t,{config:()=>d,default:()=>s,routeModule:()=>l});var o={};n.r(o),n.d(o,{default:()=>i});var r=n(1802),u=n(7153),a=n(6249);async function i(e,t){return"POST"!==e.method?t.status(405).json({success:!1,error:"Method not allowed"}):(t.setHeader("Set-Cookie","token=; HttpOnly; Path=/; Max-Age=0; SameSite=Strict"),t.status(200).json({success:!0,message:"Logged out successfully"}))}let s=(0,a.l)(o,"default"),d=(0,a.l)(o,"config"),l=new r.PagesAPIRouteModule({definition:{kind:u.x.PAGES_API,page:"/api/v1/auth/logout",pathname:"/api/v1/auth/logout",bundlePath:"",filename:""},userland:o})},7153:(e,t)=>{var n;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return n}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(n||(n={}))},1802:(e,t,n)=>{e.exports=n(145)}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var n=t(t.s=8930);module.exports=n})();