Better-auth + neon + prisma

The error after clicking signup button (the minified code is so long so I left out unimportant part)

2025-07-31T13:14:19.733Z ERROR [Better Auth]: Failed to create user Error [PrismaClientValidationError]:
Invalid `prisma.user.create()` invocation:

{
data: {
name: "Test",
email: "thundervoltatbolt@gmail.com",
emailVerified: false,
~~~~~
createdAt: new Date("2025-07-31T13:14:19.530Z"),
updatedAt: new Date("2025-07-31T13:14:19.530Z"),
id: "7H8P4GQBkSr8jbOuuCN6z2pdp1jR0SPM"
},
select: undefined
}

Argument `emailVerified`: Invalid value provided. Expected DateTime or Null, provided Boolean.
at Dn (lib\generated\prisma\runtime\library.js:32:1362)
at ri.handleRequestError (lib\generated\prisma\runtime\library.js:124:7101)
at ri.handleAndLogRequestError (lib\generated\prisma\runtime\library.js:124:6783)
at ri.request (lib\generated\prisma\runtime\library.js:124:6490)
at async l (lib\generated\prisma\runtime\library.js:133:9811)

........
........
......
.....
.....

("checkPlatformCaching:ciName",r),e===!0&&r&&r in ul){let n=`Prisma has detected that this project was built on ${r}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during
the build process.
35 | {
clientVersion: '6.13.0'
}
POST /api/auth/sign-up/email 422 in 8069ms

2025-07-31T13:14:19.733Z ERROR [Better Auth]: Failed to create user Error [PrismaClientValidationError]:
Invalid `prisma.user.create()` invocation:

{
data: {
name: "Test",
email: "thundervoltatbolt@gmail.com",
emailVerified: false,
~~~~~
createdAt: new Date("2025-07-31T13:14:19.530Z"),
updatedAt: new Date("2025-07-31T13:14:19.530Z"),
id: "7H8P4GQBkSr8jbOuuCN6z2pdp1jR0SPM"
},
select: undefined
}

Argument `emailVerified`: Invalid value provided. Expected DateTime or Null, provided Boolean.
at Dn (lib\generated\prisma\runtime\library.js:32:1362)
at ri.handleRequestError (lib\generated\prisma\runtime\library.js:124:7101)
at ri.handleAndLogRequestError (lib\generated\prisma\runtime\library.js:124:6783)
at ri.request (lib\generated\prisma\runtime\library.js:124:6490)
at async l (lib\generated\prisma\runtime\library.js:133:9811)

........
........
......
.....
.....

("checkPlatformCaching:ciName",r),e===!0&&r&&r in ul){let n=`Prisma has detected that this project was built on ${r}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during
the build process.
35 | {
clientVersion: '6.13.0'
}
POST /api/auth/sign-up/email 422 in 8069ms
` I am using neon(free plan): i created project and selected prisma to connect and use the prisma env my .env file: DATABASE_URL="postgresql://neondbowner:npg***@ep-steep-cell-aewokbc9-pooler.c-2.us-east-2.aws.neon.tech/neondb?sslmode=require&channel_binding=require" more abt the problem: https://stackoverflow.com/questions/79721423/prisma-neon-better-auth-failed-to-create-user-error-prismaclientvalidation please help
Stack Overflow
Prisma + Neon + better-auth: Failed to create user Error [PrismaCli...
The error after clicking signup button (the minified code is so long so I left out unimportant part) 2025-07-31T13:14:19.733Z ERROR [Better Auth]: Failed to create user Error [PrismaClientValidatio...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?