"use strict";(()=>{var e={};e.id=3748,e.ids=[3748],e.modules={145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},7307:(e,a,s)=>{s.r(a),s.d(a,{config:()=>v,default:()=>p,routeModule:()=>m});var t={};s.r(t),s.d(t,{authOptions:()=>f,default:()=>o});var r=s(1802),i=s(7153),u=s(8781);let d=require("next-auth");var n=s.n(d);let l=require("next-auth/providers/credentials");var c=s.n(l);let f={pages:{signIn:"/auth",signOut:"/auth"},session:{strategy:"jwt"},providers:[c()({type:"credentials",authorize(e,a){let s={id:e.id,email:e.email,staffId:e.staffId,staffName:e.staffName,accessLevels:e.accessLevels};return s}})],callbacks:{session:async({session:e,token:a,user:s})=>(e.user={...e.user,token:a},e),jwt:async({token:e,user:a})=>(a&&(e.details={userid:a.id,staffId:a.staffId,staffName:a.staffName,accessLevels:a.accessLevels}),e)}},o=n()(f),p=(0,u.l)(t,"default"),v=(0,u.l)(t,"config"),m=new r.PagesAPIRouteModule({definition:{kind:i.x.PAGES_API,page:"/api/auth/[...nextauth]",pathname:"/api/auth/[...nextauth]",bundlePath:"",filename:""},userland:t})}};var a=require("../../../webpack-api-runtime.js");a.C(e);var __webpack_exec__=e=>a(a.s=e),s=a.X(0,[4222],()=>__webpack_exec__(7307));module.exports=s})();