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

Function authKey

packages/plugins/onepassword/src/sdk/plugin.ts:209–212  ·  view source on GitHub ↗
(auth: ResolvedAuth)

Source from the content-addressed store, hash-verified

207type AuthKey = DesktopAuthKey | ServiceAccountKey;
208
209const authKey = (auth: ResolvedAuth): AuthKey =>
210 auth.kind === "desktop-app"
211 ? new DesktopAuthKey({ accountName: auth.accountName })
212 : new ServiceAccountKey({ token: auth.token });
213
214const authFromKey = (key: AuthKey): ResolvedAuth =>
215 key instanceof DesktopAuthKey

Callers 1

makeServiceForAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected