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

Function migrateSourceAuth

packages/core/sdk/src/migration-spec.ts:662–663  ·  view source on GitHub ↗
(auth: V1SourceAuth | undefined)

Source from the content-addressed store, hash-verified

660export type V2SourceAuth = { readonly kind: "none" } | { readonly kind: "oauth2" };
661
662export const migrateSourceAuth = (auth: V1SourceAuth | undefined): V2SourceAuth =>
663 auth?.kind === "oauth2" ? { kind: "oauth2" } : { kind: "none" };
664
665// ---------------------------------------------------------------------------
666// Secret-role classification.

Callers 3

migrateMcpSourceConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected