"use strict";(()=>{var e={};e.id=912,e.ids=[912],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")},39491:e=>{e.exports=require("assert")},6113:e=>{e.exports=require("crypto")},82361:e=>{e.exports=require("events")},57147:e=>{e.exports=require("fs")},13685:e=>{e.exports=require("http")},95687:e=>{e.exports=require("https")},72254:e=>{e.exports=require("node:buffer")},6005:e=>{e.exports=require("node:crypto")},47261:e=>{e.exports=require("node:util")},22037:e=>{e.exports=require("os")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},76224:e=>{e.exports=require("tty")},57310:e=>{e.exports=require("url")},73837:e=>{e.exports=require("util")},59796:e=>{e.exports=require("zlib")},13723:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>d,patchFetch:()=>h,requestAsyncStorage:()=>c,routeModule:()=>p,serverHooks:()=>x,staticGenerationAsyncStorage:()=>l});var s={};r.r(s),r.d(s,{GET:()=>i,POST:()=>u});var a=r(49303),o=r(88716),n=r(60670);let{GET:i,POST:u}=r(54610).handlers,p=new a.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/auth/[...nextauth]/route",pathname:"/api/auth/[...nextauth]",filename:"route",bundlePath:"app/api/auth/[...nextauth]/route"},resolvedPagePath:"C:\\Users\\AWA NDUBUISI\\Documents\\Next\\shop-app\\app\\api\\auth\\[...nextauth]\\route.js",nextConfigOutput:"",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:x}=p,d="/api/auth/[...nextauth]/route";function h(){return(0,n.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:l})}},55771:(e,t,r)=>{r.d(t,{ZP:()=>s});let s=r(29712).Z.create({baseURL:"https://cloud.247tranzact.com/api/",headers:{"Content-Type":"application/json"}})},54610:(e,t,r)=>{r.d(t,{I8:()=>i,handlers:()=>n});var s=r(97543),a=r(80772);r(58585);var o=r(55771);let{handlers:n,auth:i,signIn:u,signOut:p}=(0,s.ZP)({basePath:"/api/auth",trustHost:!0,secret:process.env.AUTH_SECRET,session:{strategy:"jwt",maxAge:86400},pages:{signIn:"/auth/sign_in"},providers:[(0,a.Z)({credentials:{Email:{},Password:{}},authorize:async(e,t)=>{let{email:r,password:s}=e;try{let t=await o.ZP.post("/auth/login",e);console.log(t.data);let{email:r,id:s,username:a}=t.data;return{email:r,id:s,name:a}}catch(e){return console.log(e),null}}})],callbacks:{jwt:async({token:e,user:t})=>t?{...e,id:t.id}:e,session:async({session:e,token:t})=>({...e,user:{...e.user,id:t.id}})}})},49303:(e,t,r)=>{e.exports=r(30517)}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[948,70,933],()=>r(13723));module.exports=s})();