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

Function bareAccount

apps/cloud/src/auth/org-selector-auth.node.test.ts:26–35  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

24// The mirror's account row as `ensureAccount` mints it: id only, profile
25// columns unfilled until a WorkOS user payload arrives.
26const bareAccount = (id: string) => ({
27 id,
28 email: null,
29 firstName: null,
30 lastName: null,
31 avatarUrl: null,
32 workosUpdatedAt: null,
33 lastSignInAt: null,
34 createdAt,
35});
36
37// user_session belongs to BOTH orgs; the URL selects which one a request hits.
38// Their membership in PENDING_ORG is only pending — an invite, not access.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected