deepstretch
deepstretch
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
Thanks again.
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
Yes that is what I was looking for. Trying it out now.
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
----- I had a question though - does better auth facilitate sending a link with token in the email that lets the user authenticate upon sign in? Don't think I saw something specifically about that in the socs except for magic link.
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
That was it. Created all the tables as per schema and it worked. Thank you so much.
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
I am passing my prisma client in auth.ts
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
I am passing the password field, I can see it logged. Prisma client is present and so is my schema.
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
2025-03-11T05:57:23.139Z ERROR [Better Auth]: Failed to create user [Error [PrismaClientValidationError]:
Invalid `db[getModelName(model)].create()` invocation in
/Users/--/workspace/folder-name/.next/server/chunks/node_modules_better-auth_dist_bb80db._.js:7866:62

7863 if (!db[getModelName(model)]) {
7864 throw new __TURBOPACK__imported__module__$5b$project$5d2f$workspace$2f$sunscreen$2d$checker$2f$node_modules$2f$better$2d$auth$2f$dist$2f$chunk$2d$UNWCXKMP$2e$js__$5b$app$2d$route$5d$__$28$ecmascript$29$__["BetterAuthError"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
7865 }
→ 7866 const result = await db[getModelName(model)].create({
data: {
id: "01bwUDA0036jOE48SPALcgaBpgT0hb3N",
name: "",
email: "----",
emailVerified: false,
createdAt: new Date("2025-03-11T05:57:23.130Z"),
updatedAt: new Date("2025-03-11T05:57:23.130Z"),
+ password: String
},
select: undefined
})

Argument `password` is missing.] {
clientVersion: '6.4.1'
}
POST /api/auth/sign-up/email 422 in 4842ms
2025-03-11T05:57:23.139Z ERROR [Better Auth]: Failed to create user [Error [PrismaClientValidationError]:
Invalid `db[getModelName(model)].create()` invocation in
/Users/--/workspace/folder-name/.next/server/chunks/node_modules_better-auth_dist_bb80db._.js:7866:62

7863 if (!db[getModelName(model)]) {
7864 throw new __TURBOPACK__imported__module__$5b$project$5d2f$workspace$2f$sunscreen$2d$checker$2f$node_modules$2f$better$2d$auth$2f$dist$2f$chunk$2d$UNWCXKMP$2e$js__$5b$app$2d$route$5d$__$28$ecmascript$29$__["BetterAuthError"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
7865 }
→ 7866 const result = await db[getModelName(model)].create({
data: {
id: "01bwUDA0036jOE48SPALcgaBpgT0hb3N",
name: "",
email: "----",
emailVerified: false,
createdAt: new Date("2025-03-11T05:57:23.130Z"),
updatedAt: new Date("2025-03-11T05:57:23.130Z"),
+ password: String
},
select: undefined
})

Argument `password` is missing.] {
clientVersion: '6.4.1'
}
POST /api/auth/sign-up/email 422 in 4842ms
redacted email and root folder name
15 replies
BABetter Auth
Created by deepstretch on 3/10/2025 in #help
Facing issue with sign up
Sure
15 replies