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

Function mirrored

apps/cloud/src/auth/org-selector-auth.node.test.ts:46–60  ·  view source on GitHub ↗
(
  organizationId: string,
  overrides: Partial<DirectoryMember> = {},
)

Source from the content-addressed store, hash-verified

44const PENDING_SLUG = "pending-acme";
45
46const mirrored = (
47 organizationId: string,
48 overrides: Partial<DirectoryMember> = {},
49): DirectoryMember => ({
50 accountId: MEMBER,
51 membershipId: `om_${MEMBER}_${organizationId}`,
52 organizationId,
53 email: null,
54 name: null,
55 avatarUrl: null,
56 role: "member",
57 status: "active",
58 lastActiveAt: null,
59 ...overrides,
60});
61
62// The mirror as the directory reads it: MEMBER is active in both real orgs,
63// an admin of URL_ORG, and merely invited to PENDING_ORG.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected