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

Function redactConfig

packages/plugins/onepassword/src/sdk/types.ts:160–163  ·  view source on GitHub ↗
(config: OnePasswordConfig)

Source from the content-addressed store, hash-verified

158
159/** Strip the service-account tokens from a stored config for external exposure. */
160export const redactConfig = (config: OnePasswordConfig): RedactedOnePasswordConfig => {
161 const [first, ...rest] = config.accounts;
162 return { accounts: [redactAccount(first), ...rest.map(redactAccount)] };
163};
164
165// ---------------------------------------------------------------------------
166// Connection status — reported per account so one unreachable account never

Callers 1

makeOnePasswordExtensionFunction · 0.90

Calls 1

redactAccountFunction · 0.85

Tested by

no test coverage detected