[PR #6025] [MERGED] fix: /change-email should trigger session signal #6391

Closed
opened 2026-03-13 12:57:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6025
Author: @ping-maxwell
Created: 11/16/2025
Status: Merged
Merged: 11/16/2025
Merged by: @himself65

Base: canaryHead: fix/change-email-should-trigger-session-signal


📝 Commits (2)

  • 06a44f9 fix: /change-email should trigger session signal
  • d06dcec Merge branch 'canary' into fix/change-email-should-trigger-session-signal

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/config.ts (+2 -1)

📄 Description

the useSession hook doesn't trigger when authClient.changeEmail is ran.

Linear: https://linear.app/better-auth/issue/ENG-740/fix-change-email-should-trigger-the-session-signal


Summary by cubic

Makes changeEmail trigger the session signal so useSession updates immediately. Addresses Linear ENG-740.

  • Bug Fixes
    • Added "/change-email" to the session-affecting paths in client config so session listeners fire after email changes.

Written for commit 06a44f95c9. 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/6025 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/16/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/change-email-should-trigger-session-signal` --- ### 📝 Commits (2) - [`06a44f9`](https://github.com/better-auth/better-auth/commit/06a44f95c96ec2c94d7f8ee1e4d4d8af034cab5b) fix: `/change-email` should trigger session signal - [`d06dcec`](https://github.com/better-auth/better-auth/commit/d06dcecfa12237c1a55183dc719ec77dfa478c51) Merge branch 'canary' into fix/change-email-should-trigger-session-signal ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/config.ts` (+2 -1) </details> ### 📄 Description the `useSession` hook doesn't trigger when `authClient.changeEmail` is ran. Linear: https://linear.app/better-auth/issue/ENG-740/fix-change-email-should-trigger-the-session-signal <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Makes changeEmail trigger the session signal so useSession updates immediately. Addresses Linear ENG-740. - **Bug Fixes** - Added "/change-email" to the session-affecting paths in client config so session listeners fire after email changes. <sup>Written for commit 06a44f95c96ec2c94d7f8ee1e4d4d8af034cab5b. 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-03-13 12:57:14 -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#6391