[PR #1801] [MERGED] fix: on change email request for unverified emails should use the new Email on verification token payload #4000

Closed
opened 2026-03-13 11:27:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1801
Author: @Bekacru
Created: 3/13/2025
Status: Merged
Merged: 3/13/2025
Merged by: @Bekacru

Base: mainHead: fix/change-email-verification


📝 Commits (1)

  • 6b00cb2 fix: on change email request for unverified emails should use the newEmail on verification token payload

📊 Changes

2 files changed (+20 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/api/routes/update-user.test.ts (+19 -0)
📝 packages/better-auth/src/api/routes/update-user.ts (+1 -1)

📄 Description

closes #1799


🔄 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/1801 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 3/13/2025 **Status:** ✅ Merged **Merged:** 3/13/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/change-email-verification` --- ### 📝 Commits (1) - [`6b00cb2`](https://github.com/better-auth/better-auth/commit/6b00cb2a044068aba03941ae3d433b93584e3eef) fix: on change email request for unverified emails should use the newEmail on verification token payload ### 📊 Changes **2 files changed** (+20 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/update-user.test.ts` (+19 -0) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+1 -1) </details> ### 📄 Description closes #1799 --- <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-03-13 11:27:24 -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#4000