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

Function workosUser

apps/cloud/src/auth/workos-events-sync.node.test.ts:85–100  ·  view source on GitHub ↗
(id: string, overrides: Partial<User> = {})

Source from the content-addressed store, hash-verified

83const freshId = (prefix: string) => `${prefix}_${crypto.randomUUID().replaceAll("-", "")}`;
84
85const workosUser = (id: string, overrides: Partial<User> = {}): User => ({
86 object: "user",
87 id,
88 email: `${id}@placeholder.test`,
89 emailVerified: true,
90 firstName: "Ada",
91 lastName: "Placeholder",
92 profilePictureUrl: null,
93 lastSignInAt: T1,
94 locale: null,
95 createdAt: T1,
96 updatedAt: T1,
97 externalId: null,
98 metadata: {},
99 ...overrides,
100});
101
102const workosMembership = (
103 userId: string,

Callers 2

profilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected