Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
3 replies
Dor

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"),
});
Was this page helpful?