Email signup throwing error in nextjs #268

Closed
opened 2026-03-13 07:40:16 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @venkadeshshiva on GitHub (Nov 23, 2024).

Describe the bug
Email signup throwing error in nextjs

To Reproduce
Steps to reproduce the behavior:

Using below code to signup.

const { data, error } = await authClient.signUp.email({
                email,
                password,
                name,
                image: base64Image,
            }, {
                onRequest: (ctx) => {
                    //show loading
                },
                onSuccess: (ctx) => {
                    //redirect to the dashboard
                },
                onError: (ctx) => {
                    console.log(ctx.error.message);
                },
            });

Expected behavior
It should signup and show the session value.

Screenshots
image

image

Originally created by @venkadeshshiva on GitHub (Nov 23, 2024). **Describe the bug** Email signup throwing error in nextjs **To Reproduce** Steps to reproduce the behavior: Using below code to signup. ``` const { data, error } = await authClient.signUp.email({ email, password, name, image: base64Image, }, { onRequest: (ctx) => { //show loading }, onSuccess: (ctx) => { //redirect to the dashboard }, onError: (ctx) => { console.log(ctx.error.message); }, }); ``` **Expected behavior** It should signup and show the session value. **Screenshots** ![image](https://github.com/user-attachments/assets/71bdabf6-4466-45d5-bc7b-984e26f3740e) ![image](https://github.com/user-attachments/assets/3f764cab-1fa8-416f-ad66-6fa0b42fa7b8)
Author
Owner

@Bekacru commented on GitHub (Jan 13, 2025):

this is prisma related error. Make sure to generate the client properly and the appropriate tables and fields exist on your database.

@Bekacru commented on GitHub (Jan 13, 2025): this is prisma related error. Make sure to generate the client properly and the appropriate tables and fields exist on your database.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#268