gabriel
gabriel
BABetter Auth
Created by gabriel on 4/18/2025 in #help
Argument `stripeCustomerId` is missing.
I'm getting the following error:
2025-04-18T03:02:49.602Z ERROR [Better Auth]: PrismaClientValidationError:
Invalid `prisma.user.create()` invocation:

{
data: {
name: "gabriel",
emailVerified: true,
image: "https://cdn.discordapp.com/avatars/721944365114851399/45d0a35d42c301ab7a8a0fbb4f3ecb09.png",
createdAt: new Date("2025-04-18T03:02:49.577Z"),
updatedAt: new Date("2025-04-18T03:02:49.577Z"),
role: "user",
id: "bXLuNql6aY2lMl1I4CoZUloeazQKsSgg",
+ stripeCustomerId: String
},
select: undefined
}

Argument `stripeCustomerId` is missing.
2025-04-18T03:02:49.604Z ERROR [Better Auth]: unable_to_create_user
2025-04-18T03:02:49.602Z ERROR [Better Auth]: PrismaClientValidationError:
Invalid `prisma.user.create()` invocation:

{
data: {
name: "gabriel",
emailVerified: true,
image: "https://cdn.discordapp.com/avatars/721944365114851399/45d0a35d42c301ab7a8a0fbb4f3ecb09.png",
createdAt: new Date("2025-04-18T03:02:49.577Z"),
updatedAt: new Date("2025-04-18T03:02:49.577Z"),
role: "user",
id: "bXLuNql6aY2lMl1I4CoZUloeazQKsSgg",
+ stripeCustomerId: String
},
select: undefined
}

Argument `stripeCustomerId` is missing.
2025-04-18T03:02:49.604Z ERROR [Better Auth]: unable_to_create_user
This happens when I try to register in my application with the createCustomerOnSignUp option enabled in the Stripe plugin. I have already run the database migration, but the error still persists.
26 replies