Improve TUI OTP readability
This commit is contained in:
15
docs/otp.md
15
docs/otp.md
@@ -50,13 +50,14 @@ supports terminal, clipboard, and the shared storage-owned QR matrix renderer.
|
||||
Clipboard and QR requests never print the underlying code or URI as plaintext.
|
||||
|
||||
Every generated code carries an `OtpCodeValidity` value from `crates/storage`.
|
||||
`Timed { valid_until }` identifies the exclusive Unix-time boundary for TOTP;
|
||||
frontends call its `remaining_at` method to present a countdown and request a
|
||||
replacement at zero. `CounterBased { counter }` identifies the HOTP counter
|
||||
whose increment was committed and must be described as counter-based rather
|
||||
than time-limited. Frontends must not recover periods from OTP URIs, decrement
|
||||
an assumed interval, or infer the kind from formatted text. This same contract
|
||||
is intended for the terminal, desktop, Apple, AutoFill, and watch interfaces.
|
||||
`Timed { valid_until, period }` identifies the exclusive Unix-time boundary and
|
||||
complete display interval for TOTP; frontends call its `remaining_at` method to
|
||||
present a countdown and request a replacement at zero. The `CounterBased`
|
||||
variant identifies the HOTP counter whose increment was committed and must be
|
||||
described as counter-based rather than time-limited. Frontends must not recover
|
||||
periods from OTP URIs, decrement an assumed interval, or infer the kind from
|
||||
formatted text. This same contract is intended for the terminal, desktop,
|
||||
Apple, AutoFill, and watch interfaces.
|
||||
|
||||
The CLI preserves code-only standard output for pass-compatible pipelines and
|
||||
reports the non-secret validity description on standard error. Clipboard
|
||||
|
||||
Reference in New Issue
Block a user