¯\_(ツ)_/¯¯
Convex Community6mo ago
6 replies
¯\_(ツ)_/¯

Better-Auth Nextjs SignUp Issue

Hey there,
I am fairly new to convex. I built a small nextjs app with it and am currently trying to get some basic auth working with the better-auth package.
After going through the setup guide at https://convex-better-auth.netlify.app/ I am facing the following issue:

Every time I try to invoke signUp from the client, using this data: await authClient.signUp.email( { name: "TestUser", email: "test@example.com", password: "Password123!", },

I get the following error:
{"code":"INVALID_EMAIL","message":"Invalid email","status":400,"statusText":"Bad Request"}

The troubleshooting I did:
1. I verified that the nextjs better-auth route handler gets the correct data
2. Tried setting up sign in via GitHub. I got more or less the same error. It seems as if better-auth is not receiving the request body.
3. Checked out and set up the official example repo. Got the same error.

Btw, I am using the cloud development mode.

Does anyone recognize this error? Did I miss something during the setup?
Typesafe, secure auth for Convex apps with Better Auth
Was this page helpful?