fix: resolve issues with emailVerified jwt property

This commit is contained in:
Mythie
2023-11-23 15:11:37 +11:00
parent 5de0c464f0
commit c054fc78a4
2 changed files with 19 additions and 11 deletions

View File

@ -6,11 +6,11 @@ declare module 'next-auth' {
user: User;
}
interface User extends Omit<DefaultUser, 'id' | 'image'> {
interface User extends Omit<DefaultUser, 'id' | 'image' | 'emailVerified'> {
id: PrismaUser['id'];
name?: PrismaUser['name'];
email?: PrismaUser['email'];
emailVerified?: PrismaUser['emailVerified'];
emailVerified?: string | null;
}
}
@ -19,6 +19,7 @@ declare module 'next-auth/jwt' {
id: string | number;
name?: string | null;
email: string | null;
emailVerified?: string | null;
lastSignedIn?: string | null;
}
}