[PR #3335] [MERGED] only require email if creating the account #21665

Closed
opened 2026-04-15 20:31:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3335
Author: @arlyon
Created: 7/10/2025
Status: Merged
Merged: 7/10/2025
Merged by: @Bekacru

Base: mainHead: patch-1


📝 Commits (1)

  • 0f1eead only require email if creating the account

📊 Changes

1 file changed (+7 additions, -7 deletions)

View changed files

📝 packages/better-auth/src/api/routes/callback.ts (+7 -7)

📄 Description

We throw errors on both code paths despite it not being used when linking. Move the error to after the link case so that we only bail on missing info if that missing info is actually needed.


🔄 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/3335 **Author:** [@arlyon](https://github.com/arlyon) **Created:** 7/10/2025 **Status:** ✅ Merged **Merged:** 7/10/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`0f1eead`](https://github.com/better-auth/better-auth/commit/0f1eead18eee3409727e81e1bf97243aa95dc066) only require email if creating the account ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/callback.ts` (+7 -7) </details> ### 📄 Description We throw errors on both code paths despite it not being used when linking. Move the error to after the link case so that we only bail on missing info if that missing info is actually needed. --- <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 20:31:38 -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#21665