Share Service
Component Detail
Service Layer
low complexity
mobilebackend
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Backend-authenticated service that generates a controlled, tenant-scoped profile summary payload for sharing. Explicitly whitelists only public-safe fields and produces both a deep link URL and a plain-text/card format suitable for messaging apps. Prevents enumeration via authentication and org scoping.
share-service
Responsibilities
- Fetch and whitelist public-safe profile fields (display name, role, org, photo)
- Generate authenticated, tenant-scoped shareable deep link
- Produce plain-text card format for messaging app sharing
- Exclude all sensitive fields (phone, personal ID, address)
Interfaces
generateSharePayload(userId: String): SharePayload
getShareableDeepLink(userId: String): Uri
getPlainTextCard(userId: String): String