Show OTP code validity in every frontend #63
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
OTP code presentation must tell the user how many seconds the current code remains valid. The CLI currently presents the code without its remaining validity. The TUI has storage-provided validity countdown and automatic boundary refresh from issue #27; that behavior must remain covered and must not regress. Future frontends need the same storage-owned presentation contract.
Required behavior
Acceptance criteria
Implemented and pushed in commit
d3427f3.Implementation:
Review confirmed that no frontend derives an OTP period, code, or validity boundary. Code-only stdout compatibility and clipboard secret isolation are preserved.
Required gates passed:
Focused storage OTP, CLI terminal/clipboard/HOTP, and TUI boundary tests also pass.