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

Function authFromKey

packages/plugins/onepassword/src/sdk/plugin.ts:214–217  ·  view source on GitHub ↗
(key: AuthKey)

Source from the content-addressed store, hash-verified

212 : new ServiceAccountKey({ token: auth.token });
213
214const authFromKey = (key: AuthKey): ResolvedAuth =>
215 key instanceof DesktopAuthKey
216 ? { kind: "desktop-app", accountName: key.accountName }
217 : { kind: "service-account", token: key.token };
218
219/** One service per auth identity, memoized for the plugin instance's
220 * lifetime. Keying by the resolved auth keeps accounts isolated (a shared

Callers 1

makeServiceForAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected