NextAuth custom properties for session
Hi guys, there is my nextauth config using drizzle
as you can see, I have normally custom properties like isStaff. But, when I log my session, isStaff or any other propertie is always null
1 Reply
a quick console.log of user inside your session callback will show you it is actually null. You need to defined where that property is defined and set it from there, wither a database or an api