Type mismatch between auth.api.getSession and typeof user.$inferSelect
I have a backend server with express and drizzle.
I get the type of the userTable with
typeof user.$inferSelect
This type is different from the type of session.user
that returns from auth.api.getSession
.
Is there a way to remove the undefined from the type getSession().user?0 Replies