[PR #1004] [MERGED] fix: create a new session on email verification if current session email doesn't match #29185

Closed
opened 2026-04-17 20:34:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1004
Author: @Bekacru
Created: 12/23/2024
Status: Merged
Merged: 12/23/2024
Merged by: @Bekacru

Base: mainHead: fix/email-verification


📝 Commits (1)

  • 287f025 fix: create new session on email verify if current session and verifed email doesn't match

📊 Changes

2 files changed (+17 additions, -7 deletions)

View changed files

📝 packages/better-auth/src/api/routes/email-verification.ts (+1 -1)
📝 packages/better-auth/src/plugins/magic-link/index.ts (+16 -6)

📄 Description

closes #996


🔄 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/1004 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/23/2024 **Status:** ✅ Merged **Merged:** 12/23/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/email-verification` --- ### 📝 Commits (1) - [`287f025`](https://github.com/better-auth/better-auth/commit/287f025d71f47cb472e6d167f38f854e272b0110) fix: create new session on email verify if current session and verifed email doesn't match ### 📊 Changes **2 files changed** (+17 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/magic-link/index.ts` (+16 -6) </details> ### 📄 Description closes #996 --- <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-17 20:34:08 -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#29185