• Steven's avatar
    fix(web): use BroadcastChannel to sync token refreshes across tabs · bbdc9986
    Steven authored
    When multiple tabs are open and a token expires, each tab independently
    attempts a refresh. With server-side token rotation this causes all but
    the first tab to fail, logging the user out.
    
    Add a BroadcastChannel (memos_token_sync) so that when any tab
    successfully refreshes, it broadcasts the new token to all other tabs.
    Receiving tabs adopt the token in-memory immediately, skipping their own
    refresh request and avoiding conflicts with token rotation.
    
    Falls back gracefully when BroadcastChannel is unavailable (e.g. some
    privacy modes).
    bbdc9986
Name
Last commit
Last update
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
AGENTS.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...