W008: List my pending invitations
Returns invitations addressed to the current user's email that are still actionable. Triggered from My Organizations and at app login.
Steps
-
Resolve the caller's email. Pull it from the verified Firebase claims.
-
Fetch pending invites for that email. Call
Platform.listInvitationsByEmail(email, ['pending']). -
Drop expired entries. Filter out anything past its expiry timestamp.
Returns
Pending, unexpired invitations addressed to the current user's email.
Business rules
- Status filter is
pendingonly. Accepted, declined, revoked, or expired invitations are not surfaced here.
Errors
None.