ByteSync
ByteSync copied to clipboard
2.5 Add nonce generation and invitation TTL
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.