[GH-ISSUE #1303] signup with email error email is required #17315

Closed
opened 2026-04-15 15:25:35 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @okxiaoliang4 on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1303

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. create better-auth server
  2. set emailAndPassword.enable = true
  3. call authClient.signUp.email({email:"xxx@gmail.com",password:"xxxxxx","name":"test"})

Current vs. Expected behavior

Following the steps from the previous section, I expected to success signUp with email and password. But throwing an error email is required.

What version of Better Auth are you using?

1.1.14

Provide environment information

System:
    OS: macOS 15.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 47.56 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.4.1 - ~/.nvm/versions/node/v22.4.1/bin/node
    Yarn: 1.22.22 - ~/Library/pnpm/yarn
    npm: 10.8.1 - ~/.nvm/versions/node/v22.4.1/bin/npm
    bun: 1.2.0 - ~/.bun/bin/bun
    Watchman: 2024.11.18.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 131.0.6778.206
    Safari: 18.0

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

I tested my reproduction against the latest release.

Originally created by @okxiaoliang4 on GitHub (Jan 30, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1303 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. create better-auth server 2. set emailAndPassword.enable = true 3. call `authClient.signUp.email({email:"xxx@gmail.com",password:"xxxxxx","name":"test"})` ### Current vs. Expected behavior Following the steps from the previous section, I expected to success signUp with email and password. But throwing an error `email is required`. ### What version of Better Auth are you using? 1.1.14 ### Provide environment information ```bash System: OS: macOS 15.0 CPU: (10) arm64 Apple M1 Pro Memory: 47.56 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.4.1 - ~/.nvm/versions/node/v22.4.1/bin/node Yarn: 1.22.22 - ~/Library/pnpm/yarn npm: 10.8.1 - ~/.nvm/versions/node/v22.4.1/bin/npm bun: 1.2.0 - ~/.bun/bin/bun Watchman: 2024.11.18.00 - /opt/homebrew/bin/watchman Browsers: Chrome: 131.0.6778.206 Safari: 18.0 ``` ### Which area(s) are affected? (Select all that apply) Backend ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context I tested my reproduction against the latest release.
GiteaMirror added the lockedbug labels 2026-04-15 15:25:35 -05:00
Author
Owner

@Bekacru commented on GitHub (Mar 24, 2025):

feel free to re-open if this is still an issue

<!-- gh-comment-id:2746872938 --> @Bekacru commented on GitHub (Mar 24, 2025): feel free to re-open if this is still an issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#17315