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

Function ownerPartitionKey

packages/core/sdk/src/migration-spec.ts:65–66  ·  view source on GitHub ↗
(keys: OwnerKeys)

Source from the content-addressed store, hash-verified

63/** Stable string identifying the partition an oauth_client is deduped within —
64 * shared org apps collapse across the org, personal apps stay per-user. */
65export const ownerPartitionKey = (keys: OwnerKeys): string =>
66 keys.owner === "org" ? `org:${keys.tenant}` : `user:${keys.subject}:${keys.tenant}`;
67
68// ---------------------------------------------------------------------------
69// WorkOS Vault object naming.

Callers 3

dedupeOAuthClientsFunction · 0.85
oauthClientPlanDedupKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected