()
| 28 | typeof globalThis.window?.executor?.getServerConnection === "function"; |
| 29 | |
| 30 | const readStoredToken = (): string | null => { |
| 31 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: localStorage can throw (private mode / disabled storage) |
| 32 | try { |
| 33 | return globalThis.localStorage?.getItem(STORAGE_KEY) ?? null; |
| 34 | } catch { |
| 35 | return null; |
| 36 | } |
| 37 | }; |
| 38 | |
| 39 | const persistToken = (token: string): void => { |
| 40 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: localStorage can throw (private mode / disabled storage) |
no outgoing calls
no test coverage detected