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

Function workosUser

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

Source from the content-addressed store, hash-verified

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

Callers 3

signInFunction · 0.70
sourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected