|
UnENVerse 0.84.0
Local-first desktop secrets manager — TypeScript frontend
|
Functions | |
| function | lines (entry:Pick< VaultEntry, 'extra_vars'>) |
| function export | codeStatus (entry:Pick< VaultEntry, 'extra_vars'>) |
| function export | nextCode (entry:Pick< VaultEntry, 'extra_vars'>) |
| New value for codes, or throws with the reason. | |
Variables | |
| import | type { VaultEntry } from './types' |
| Single-use recovery codes (Phase 24.5). | |
| return { total: all.length, remaining: all.filter((l) => !l.includes('\t')).length } | |
| function lines | ( | entry:Pick< VaultEntry, 'extra_vars'> | ) |
| function export codeStatus | ( | entry:Pick< VaultEntry, 'extra_vars'> | ) |
| function export nextCode | ( | entry:Pick< VaultEntry, 'extra_vars'> | ) |
New value for codes, or throws with the reason.
Every code with the date it was used, or null while it is unused. For the Recovery codes pane.
| import type { VaultEntry } from './types' |
Single-use recovery codes (Phase 24.5).
Twin of the code_*/mark_used functions in vault-core/src/type_emit.rs, pinned by tests/fixtures/parity/recovery-codes.json.
One code per line in the entry's codes variable. A used code is not removed: it keeps its text and gains \tUSED <date>, so "which did I burn?" is still answerable. Reading never consumes (the HOTP rule) — a code is spent when the service accepts it, and only the user knows that.
| return { total: all.length, remaining: all.filter((l) => !l.includes('\t')).length } |