123
This commit is contained in:
@ -22,7 +22,9 @@ export function setApiToken(token: string | null) {
|
||||
if (token) sessionStorage.setItem(STORAGE_KEY, token);
|
||||
else sessionStorage.removeItem(STORAGE_KEY);
|
||||
}
|
||||
} catch {}
|
||||
} catch {
|
||||
// ignore storage errors (e.g. private mode)
|
||||
}
|
||||
}
|
||||
|
||||
/** Returns current JWT (memory or sessionStorage after reload). */
|
||||
|
||||
Reference in New Issue
Block a user