MCPcopy Index your code
hub / github.com/simstudioai/sim / getInvitationByToken

Function getInvitationByToken

apps/sim/lib/invitations/core.ts:73–77  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

71}
72
73export async function getInvitationByToken(token: string): Promise<InvitationWithGrants | null> {
74 const [row] = await db.select().from(invitation).where(eq(invitation.token, token)).limit(1)
75 if (!row) return null
76 return hydrateInvitation(row)
77}
78
79async function hydrateInvitation(
80 row: typeof invitation.$inferSelect

Callers

nothing calls this directly

Calls 2

hydrateInvitationFunction · 0.85
eqFunction · 0.50

Tested by

no test coverage detected