(token: string)
| 46 | }; |
| 47 | |
| 48 | const applyBearer = (token: string): void => { |
| 49 | const current = getExecutorServerConnection(); |
| 50 | // Only standalone web carries the token in the client; desktop injects it. |
| 51 | if (current.kind !== "http") return; |
| 52 | setExecutorServerConnection({ ...current, auth: { kind: "bearer", token } }); |
| 53 | }; |
| 54 | |
| 55 | /** |
| 56 | * Resolve and apply the local bearer token at boot. Call once before the router |
no test coverage detected