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

Function clientIdFor

apps/local/src/db/v1-v2-migration.ts:755–758  ·  view source on GitHub ↗
(
  client: MigrationPlan["oauthClients"][number],
  values: ReadonlyMap<string, string>,
)

Source from the content-addressed store, hash-verified

753 owner === "org" ? "" : subject;
754
755const clientIdFor = (
756 client: MigrationPlan["oauthClients"][number],
757 values: ReadonlyMap<string, string>,
758): string => client.clientId || values.get(oauthClientPlanKey(client)) || "";
759
760const jsonText = (value: unknown): string | null => {
761 if (value == null) return null;

Callers 1

insertPlanFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected