[GH-ISSUE #8120] Session updates are never broadcast #11001

Closed
opened 2026-04-13 07:22:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @tilgovi on GitHub (Feb 23, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8120

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Disable refetch on focus or update the auth state and switch tabs quickly enough to have a second update get rate limited. Observe that the auth state gets out of sync.

Current vs. Expected behavior

Currently, the broadcastSessionUpdate() function is never called.

It is expected that session updates should be broadcast.

What version of Better Auth are you using?

1.4.17

System info

Better Auth System Information
==============================

System Information:
{
  "platform": "darwin",
  "arch": "arm64",
  "version": "Darwin Kernel Version 25.3.0: Wed Jan 28 20:48:41 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T6041",
  "release": "25.3.0",
  "cpuCount": 14,
  "cpuModel": "Apple M4 Pro",
  "totalMemory": "48.00 GB",
  "freeMemory": "1.04 GB"
}

Node.js:
{
  "version": "v22.22.0",
  "env": "development"
}

Package Manager:
{
  "name": "npm",
  "version": "10.9.4"
}

Frameworks:
[
  {
    "name": "react",
    "version": "~19.2.4"
  }
]

Database Clients:
null

Better Auth:
{
  "version": "^1.4.17",
  "config": null
}

Which area(s) are affected? (Select all that apply)

Client

Auth config (if applicable)


Additional context

No response

Originally created by @tilgovi on GitHub (Feb 23, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8120 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Disable refetch on focus or update the auth state and switch tabs quickly enough to have a second update get rate limited. Observe that the auth state gets out of sync. ### Current vs. Expected behavior Currently, the `broadcastSessionUpdate()` function is never called. It is expected that session updates should be broadcast. ### What version of Better Auth are you using? 1.4.17 ### System info ```bash Better Auth System Information ============================== System Information: { "platform": "darwin", "arch": "arm64", "version": "Darwin Kernel Version 25.3.0: Wed Jan 28 20:48:41 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T6041", "release": "25.3.0", "cpuCount": 14, "cpuModel": "Apple M4 Pro", "totalMemory": "48.00 GB", "freeMemory": "1.04 GB" } Node.js: { "version": "v22.22.0", "env": "development" } Package Manager: { "name": "npm", "version": "10.9.4" } Frameworks: [ { "name": "react", "version": "~19.2.4" } ] Database Clients: null Better Auth: { "version": "^1.4.17", "config": null } ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-13 07:22:48 -05:00
Author
Owner

@Abhinav-kodes commented on GitHub (Feb 26, 2026):

I'd like to work on this, let me know if there's any context I should be aware of before I start.

<!-- gh-comment-id:3968889521 --> @Abhinav-kodes commented on GitHub (Feb 26, 2026): I'd like to work on this, let me know if there's any context I should be aware of before I start.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#11001