Auth client is not updating the Prisma user model.

my prisma user model model User { id String @id name String? surname String? username String @unique role UserRole @default(USER) email String emailVerified Boolean @default(false) image String? createdAt DateTime @default(now()) updatedAt DateTime @default(now()) @updatedAt sessions Session[] accounts Account[] @@unique([email]) @@map("user") } my auth.ts user: { additionalFields: { username: { type: "string", required: true }, role: { type: "string", required: true, default: "USER" } } }, usesession (alias) useSession(): { data: { user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; session: { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; } | null; isPending: boolean; isRefetching: boolean; error: BetterFetchError | null; refetch: (queryParams?: { query?: SessionQueryParams; }) => void; } import useSession
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?