ByteSync
ByteSync copied to clipboard
4.3 Validate the invitation recipient identity
Parent epic: #310
Summary
Ensure the invitation is intended for the local client.
Requirements
- Check that
payload.RecipientClientIdmatches the current client ID. - Reject invitations addressed to another client.
- Detect mismatches between envelope metadata and internal payload recipient.
Acceptance criteria
- Invitations for the local client pass validation.
- Invitations for another client fail.
- Envelope/payload recipient mismatches fail.