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

Function resolveAuth

packages/plugins/onepassword/src/sdk/plugin.ts:197–200  ·  view source on GitHub ↗
(auth: OnePasswordAuth)

Source from the content-addressed store, hash-verified

195// ---------------------------------------------------------------------------
196
197const resolveAuth = (auth: OnePasswordAuth): ResolvedAuth =>
198 auth.kind === "desktop-app"
199 ? { kind: "desktop-app", accountName: auth.accountName }
200 : { kind: "service-account", token: auth.token };
201
202/** Cache keys with structural equality (`Data.Class`), one per auth shape so
203 * the two kinds can never collide. Every account row carrying the same

Callers 1

makeServiceForAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected