ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

2.5 Add nonce generation and invitation TTL

Open marwannettour opened this issue 6 months ago • 0 comments

Parent epic: #308

Summary

Add cryptographically secure nonce generation and default invitation expiration.

Requirements

  • Define a default invitation TTL, initially 5 minutes.
  • Generate nonces with a cryptographically secure random source.
  • Define the nonce format.
  • Consider a small clock tolerance if the existing time infrastructure supports it.

Acceptance criteria

  • Generated nonces are unique across repeated generations in tests.
  • Expiration is included in every payload.
  • TTL behavior is configurable or centralized.

marwannettour avatar May 19 '26 12:05 marwannettour