Infrastructure medium complexity Shared Component backend
0
Dependencies
2
Dependents
1
Entities
0
Integrations

Description

Generates and validates time-limited cryptographically signed tokens used in user invitation links. Tokens encode the invitee email, role, and organization, and expire after a configurable TTL to prevent stale invitation acceptance.

Feature: User Management

invitation-token-infrastructure

Responsibilities

  • Generate signed invitation tokens with embedded claims
  • Validate token signature and expiry on acceptance
  • Enforce single-use semantics by tracking consumed tokens
  • Support configurable token TTL per organization policy

Interfaces

generateToken(email, role, organizationId, ttlSeconds)
verifyToken(token)
decodeTokenClaims(token)
markTokenConsumed(tokenId)
isTokenConsumed(tokenId)
isTokenExpired(token)

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component