[GH-ISSUE #1909] Double return in username plugin #8970

Closed
opened 2026-04-13 04:13:19 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @VIEWVIEWVIEW on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1909

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

The second return is not reachable.
e60eb4dc79/packages/better-auth/src/plugins/username/index.ts (L236-L245)

Current vs. Expected behavior

What version of Better Auth are you using?

Provide environment information

-

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

Package

Auth config (if applicable)


Additional context

No response

Originally created by @VIEWVIEWVIEW on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1909 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce The second return is not reachable. https://github.com/better-auth/better-auth/blob/e60eb4dc79c643ad7aa04c1807501f3258bad69a/packages/better-auth/src/plugins/username/index.ts#L236-L245 ### Current vs. Expected behavior - ### What version of Better Auth are you using? - ### Provide environment information ```bash - ``` ### Which area(s) are affected? (Select all that apply) Package ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-13 04:13:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8970