dsql-admin/dsql-app/.local_dist/server/pages/api/clientSideAuth.js

1 line
1.4 KiB
JavaScript
Raw Normal View History

2025-01-14 15:27:08 +00:00
"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{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}}})},27215:(e,t,n)=>{n.r(t),n.d(t,{config:()=>s,default:()=>l,routeModule:()=>P});var r={};n.r(r),n.d(r,{default:()=>d});var i=n(89947),u=n(2706),a=n(96762),o=n(69842);async function d(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let n=await (0,o.A)(e,t,!0);t.json({user:n})}let l=(0,a.M)(r,"default"),s=(0,a.M)(r,"config"),P=new i.PagesAPIRouteModule({definition:{kind:u.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:r})},69842:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(39908),i=n.n(r);async function u(e,t,n){let r=i()({req:e,level:n?"deep":void 0});return console.log(r),r.payload}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var n=t(t.s=27215);module.exports=n})();