MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / wipeKeychainService

Function wipeKeychainService

e2e/local/oauth-token-durability.test.ts:85–96  ·  view source on GitHub ↗
(serviceName: string)

Source from the content-addressed store, hash-verified

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. */
85const 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
98const apiClient = (server: ServerHandle) =>
99 HttpApiClient.make(api, {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected