fix(auth): sync logout across browser tabs

Listen for localStorage token changes so other open pages clear session state when one tab signs out.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hansjone 2026-07-30 02:34:25 +00:00
parent b540ea21c1
commit a3bdad5be1
2 changed files with 26 additions and 2 deletions

View file

@ -25,7 +25,7 @@ import type {
TopologyMapItem,
} from "../types";
const AUTH_TOKEN_KEY = "netx_access_token";
export const AUTH_TOKEN_KEY = "netx_access_token";
export const getAuthToken = (): string | null => {
try {