Service Layer medium complexity mobilebackend
1
Dependencies
1
Dependents
1
Entities
0
Integrations

Description

Generates short, signed invite URLs with an embedded referrer token and configurable expiry window by calling the backend REST API. Caches the active link locally to avoid redundant API calls and exposes referral history and redemption status for display in the Invite Share Screen.

Feature: Invite Link & QR Sharing

referral-link-service

Responsibilities

  • Request a signed invite URL from the backend with referrer token
  • Cache the active link locally and serve from cache within expiry window
  • Detect link expiry and trigger regeneration transparently
  • Fetch referral history and redemption count for the current user

Interfaces

generateInviteLink(userId: String): Future<InviteLink>
getActiveLink(userId: String): Future<InviteLink?>
refreshExpiredLink(userId: String): Future<InviteLink>
getReferralHistory(userId: String): Future<List<Referral>>
redeemToken(token: String, inviteeId: String): Future<void>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component