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

Function mintInviteCode

apps/host-selfhost/src/testing/mint-invite.ts:64–67  ·  view source on GitHub ↗
(
  handler: Handler,
  role: InviteRole = "member",
)

Source from the content-addressed store, hash-verified

62
63/** Mint one invitation with a fresh authenticated admin session. */
64export const mintInviteCode = async (
65 handler: Handler,
66 role: InviteRole = "member",
67): Promise<string> => (await createInviteMinter(handler))(role);

Callers 8

signUpFunction · 0.90
sso.test.tsFile · 0.90
signUpFunction · 0.90
signUpIdentityFunction · 0.90
joinAsMemberFunction · 0.90

Calls 1

createInviteMinterFunction · 0.85

Tested by 4

signUpFunction · 0.72
signUpFunction · 0.72
signUpIdentityFunction · 0.72
joinAsMemberFunction · 0.72