[BUG] Multi-tab session sync doesn't propagate a logout performed in one tab to other open tabs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- authentication
Research direction
Read the auth logout path and the existing login state sync that uses storage events. Check how logout clears local storage and compare it with that sync mechanism; done means another open tab updates its auth state immediately after logout. The issue does not name specific files or tests, so locate them from those entry points.
Written by the indexing model from the issue text.
Description
Description
Logging out in one browser tab clears that tab's in-memory SDK state, but other open tabs with their own SDK client instance keep believing the session is active until they happen to make a call that fails, rather than being notified immediately via the storage-event mechanism other state changes use.
Component
auth
Steps to Reproduce
- Open the app in two browser tabs, both authenticated.
- Log out in tab A.
- Check tab B's apparent auth state without refreshing.
Expected Behavior
Logout should broadcast via the same cross-tab storage-event mechanism used for other session state changes, so all open tabs update immediately.
Actual Behavior
Other open tabs have no idea a logout happened until their next failed API call, which is a confusing stale-state window.
Environment
- SDK version: 0.3.x
- Node version: 20.x, 22.x
- OS: macOS / Linux
- Network: TESTNET
Code Example
// Not applicable — reproduced via API inspection, not a standalone snippet.
Error Output
The logout path clears local storage but doesn't explicitly dispatch/rely on a storage event the way login state sync does elsewhere.
Difficulty
🟢 Easy
Additional Context
Ensure logout triggers the same cross-tab storage-event propagation used for other auth-state changes.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 73
- Avg merge
- 6h 26m
- Merged PRs (30d)
- 37
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from trustflow-protocol/trustflow-sdk
-
bug difficulty: easy good first issue priority: low sdk security
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
trustflow-protocol/trustflow-sdk#1007 · 1 comment ·
Maintainers usually reply within 1 day
-
bug difficulty: easy good first issue priority: medium sdk
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
trustflow-protocol/trustflow-sdk#1004 · 1 comment ·
Maintainers usually reply within 1 day
-
bug difficulty: easy good first issue priority: medium sdk
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
trustflow-protocol/trustflow-sdk#1002 · 1 comment ·
Maintainers usually reply within 1 day
-
bug difficulty: easy good first issue priority: medium sdk
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
trustflow-protocol/trustflow-sdk#1001 · 1 comment ·
Maintainers usually reply within 1 day
-
bug core difficulty: medium good first issue priority: medium sdk
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
trustflow-protocol/trustflow-sdk#1000 ·
Maintainers usually reply within 1 day
All issues in trustflow-protocol/trustflow-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ardia-browser/ardia#6391 ·
Maintainers usually reply within 1 day
-
Feature:Actions/ConnectorTypes Team:ResponseOps
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
elastic/kibana#309028 · 1 comment ·
Maintainers usually reply within 1 day
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day