Why can't I extend the user session object?

I'm using the drizzle t3 stack but unable to get this to work! I want to add a new key to the user object In other project (with prisma) it's working This is how im creating my table:
export const users = pgTable("user", { id: text("id").notNull().primaryKey(), name: text("name"), email: text("email").notNull(), field: text("field").default("testing"), emailVerified: timestamp("emailVerified", { mode: "date" }).defaultNow(), image: text("image"), });
3 Replies
Dor
DorOP13mo ago
No description
Dor
DorOP13mo ago
my users table surely contains "field"
No description
Dor
DorOP13mo ago
Can't tell why but certainly this problem occurs only when using drizzle I converted all my stack to use Prisma and it worked - user object is being extended Help what's wrong theowat
Want results from more Discord servers?
Add your server