[PR #6186] [MERGED] fix(client): get-session gets triggered twice on foucs #6509

Closed
opened 2026-03-13 13:01:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: fix/focus-manager


📝 Commits (1)

  • 978cf98 fix(client): get-sesion gets triggered twice on foucs

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/focus-manager.ts (+0 -4)

📄 Description

Summary by cubic

Stop double getSession calls when returning to the tab. Removed the window focus listener and now rely on document visibilitychange to set focus only when the page becomes visible.

Written for commit 978cf9858f. 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/6186 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/22/2025 **Status:** ✅ Merged **Merged:** 11/22/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/focus-manager` --- ### 📝 Commits (1) - [`978cf98`](https://github.com/better-auth/better-auth/commit/978cf9858fa73ac8ec935ef3fed4171c526cedaf) fix(client): get-sesion gets triggered twice on foucs ### 📊 Changes **1 file changed** (+0 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/focus-manager.ts` (+0 -4) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Stop double getSession calls when returning to the tab. Removed the window focus listener and now rely on document visibilitychange to set focus only when the page becomes visible. <sup>Written for commit 978cf9858fa73ac8ec935ef3fed4171c526cedaf. 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 13:01:40 -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#6509