[PR #6150] [MERGED] fix(magic-link): avoid returning error for disabled signup early #23385

Closed
opened 2026-04-15 21:40:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6150
Author: @Bekacru
Created: 11/21/2025
Status: Merged
Merged: 11/21/2025
Merged by: @Bekacru

Base: canaryHead: refactor/magic-link


📝 Commits (2)

  • 1499649 fix(magic-link): avoid returning error for disabled signup early
  • 8f8d9fd fix

📊 Changes

1 file changed (+0 additions, -13 deletions)

View changed files

📝 packages/better-auth/src/plugins/magic-link/index.ts (+0 -13)

📄 Description

Summary by cubic

Avoid early USER_NOT_FOUND errors when sign-up is disabled in magic link requests; user validation is deferred to verification to prevent user enumeration.

Written for commit 8f8d9fdf6d. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6150 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `refactor/magic-link` --- ### 📝 Commits (2) - [`1499649`](https://github.com/better-auth/better-auth/commit/1499649841e617adeb5ebf652770f7569e83520a) fix(magic-link): avoid returning error for disabled signup early - [`8f8d9fd`](https://github.com/better-auth/better-auth/commit/8f8d9fdf6d91ad927c3f42bcb4aeb510f8278602) fix ### 📊 Changes **1 file changed** (+0 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/magic-link/index.ts` (+0 -13) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Avoid early USER_NOT_FOUND errors when sign-up is disabled in magic link requests; user validation is deferred to verification to prevent user enumeration. <sup>Written for commit 8f8d9fdf6d91ad927c3f42bcb4aeb510f8278602. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:40:58 -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#23385