(serviceName: string)
| 83 | * one matching item per call, so loop until none remain. When the fix routes |
| 84 | * tokens to the file provider this is a no-op — nothing lives there. */ |
| 85 | const wipeKeychainService = (serviceName: string): void => { |
| 86 | if (process.platform !== "darwin") return; |
| 87 | for (let i = 0; i < 32; i++) { |
| 88 | try { |
| 89 | execFileSync("security", ["delete-generic-password", "-s", serviceName], { |
| 90 | stdio: "ignore", |
| 91 | }); |
| 92 | } catch { |
| 93 | return; // no more entries under this service |
| 94 | } |
| 95 | } |
| 96 | }; |
| 97 | |
| 98 | const apiClient = (server: ServerHandle) => |
| 99 | HttpApiClient.make(api, { |
no outgoing calls
no test coverage detected