"use strict";exports.id=9542,exports.ids=[9542],exports.modules={69542:(e,s,a)=>{a.d(s,{L:()=>t});var r=a(45955),l=a(30953),i=a(40160);let t={providers:[(0,r.Z)({name:"Credentials",credentials:{email:{label:"Email",type:"email"},password:{label:"Password",type:"password"}},async authorize(e){if(!e?.email||!e?.password)return null;let s=await l._.user.findUnique({where:{email:e.email}});if(!s)return null;let a=await i.qu(e.password,s.password);return a?{id:s.id,email:s.email,name:s.name,role:s.role}:null}})],callbacks:{session:async({session:e,token:s})=>(s&&e.user&&(e.user.id=s.id,e.user.role=s.role),e),jwt:async({token:e,user:s})=>(s&&(e.id=s.id,e.role=s.role),e)},pages:{signIn:"/auth/login"},session:{strategy:"jwt"}}}};