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

Function computeInvitationExpiry

apps/sim/lib/invitations/core.ts:39–41  ·  view source on GitHub ↗
(daysFromNow = INVITATION_EXPIRY_DAYS)

Source from the content-addressed store, hash-verified

37export const INVITATION_EXPIRY_DAYS = 7
38
39export function computeInvitationExpiry(daysFromNow = INVITATION_EXPIRY_DAYS): Date {
40 return new Date(Date.now() + daysFromNow * 24 * 60 * 60 * 1000)
41}
42
43export interface InvitationWithGrants {
44 id: string

Callers 2

createPendingInvitationFunction · 0.90
prepareInvitationResendFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected