mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 07:53:15 +08:00
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:
parent
b540ea21c1
commit
a3bdad5be1
2 changed files with 26 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue