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

Function workosUser

apps/cloud/src/auth/mirror-feeders.node.test.ts:107–122  ·  view source on GitHub ↗
(id: string, overrides: Partial<WorkOsUserPayload> = {})

Source from the content-addressed store, hash-verified

105const freshId = (prefix: string) => `${prefix}_${crypto.randomUUID().replaceAll("-", "")}`;
106
107const workosUser = (id: string, overrides: Partial<WorkOsUserPayload> = {}) => ({
108 object: "user" as const,
109 id,
110 email: `${id}@placeholder.test`,
111 emailVerified: true,
112 firstName: "Ada",
113 lastName: "Placeholder",
114 profilePictureUrl: null,
115 lastSignInAt: T1,
116 locale: null,
117 createdAt: T1,
118 updatedAt: T1,
119 externalId: null,
120 metadata: {},
121 ...overrides,
122});
123
124interface FakeMembership extends WorkOsMembershipPayload {
125 readonly organizationName: string;

Callers 3

signInFunction · 0.70
sourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected