• 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
..
components Loading commit data...
contexts Loading commit data...
helpers Loading commit data...
hooks Loading commit data...
layouts Loading commit data...
lib Loading commit data...
locales Loading commit data...
pages Loading commit data...
router Loading commit data...
themes Loading commit data...
types Loading commit data...
utils Loading commit data...
App.tsx Loading commit data...
auth-state.ts Loading commit data...
connect.ts Loading commit data...
i18n.ts Loading commit data...
index.css Loading commit data...
instance-config.ts Loading commit data...
main.tsx Loading commit data...