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

Function redactAuth

packages/plugins/onepassword/src/sdk/types.ts:147–150  ·  view source on GitHub ↗
(auth: OnePasswordAuth)

Source from the content-addressed store, hash-verified

145export type RedactedOnePasswordConfig = typeof RedactedOnePasswordConfig.Type;
146
147const redactAuth = (auth: OnePasswordAuth): typeof RedactedOnePasswordAuth.Type =>
148 auth.kind === "desktop-app"
149 ? { kind: "desktop-app", accountName: auth.accountName }
150 : { kind: "service-account" };
151
152export const redactAccount = (account: OnePasswordAccount): RedactedOnePasswordAccount => ({
153 id: account.id,

Callers 1

redactAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected