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

Function migrateGrant

packages/core/sdk/src/migration-spec.ts:574–575  ·  view source on GitHub ↗
(kind: V1ConnectionKind)

Source from the content-addressed store, hash-verified

572export type MigrationGrant = "authorization_code" | "client_credentials";
573
574export const migrateGrant = (kind: V1ConnectionKind): MigrationGrant =>
575 kind === "client-credentials" ? "client_credentials" : "authorization_code";
576
577/** 1h — synthetic TTL for client_credentials connections whose v1 provider
578 * omitted `expires_in`. Re-mint is userless + cheap, so hourly churn is fine. */

Callers 2

planMigrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected