ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

4.5 Add replay protection with consumed invitation nonces

Open marwannettour opened this issue 6 months ago • 0 comments

Parent epic: #310

Summary

Track consumed invitation nonces locally to reject replayed invitations.

Requirements

  • Add local storage for consumed invitation nonces.
  • Store issuer client ID, nonce, consumed date, and expiration date.
  • Reject an invitation if the issuer and nonce were already consumed.
  • Clean up old consumed nonces periodically or during access.

Acceptance criteria

  • Replayed invitations are rejected.
  • Nonces are kept at least until expiration.
  • Old nonce records are cleaned up safely.

marwannettour avatar May 19 '26 12:05 marwannettour