Could someone help me debug this error?

../../packages/auth/src/auth-options.ts(19,22): error TS2339: Property 'id' does not exist on type '{ name?: string | null | undefined; email?: string | null | undefined; image?: string | null | undefined; }'. Context: Turborepo based on create-t3-turbo, I got the right prisma schema but im not sure where else to look
1 Reply
Shoodey
Shoodey2y ago
I also got next-auth.d.ts in place and included in the auth package's tsconfig
declare module "next-auth" {
interface Session extends DefaultSession {
user: {
id: string;
} & DefaultSession["user"];
}
}
declare module "next-auth" {
interface Session extends DefaultSession {
user: {
id: string;
} & DefaultSession["user"];
}
}
wellp - i guess i was just missing "../../packages/auth/next-auth.d.ts" in my app's tsconfig's include.... yikes
Want results from more Discord servers?
Add your server