(token: string)
| 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) |
| 41 | try { |
| 42 | globalThis.localStorage?.setItem(STORAGE_KEY, token); |
| 43 | } catch { |
| 44 | // best-effort; the token still applies for this session |
| 45 | } |
| 46 | }; |
| 47 | |
| 48 | const applyBearer = (token: string): void => { |
| 49 | const current = getExecutorServerConnection(); |
no outgoing calls
no test coverage detected