feat(desktop): gate sign-out behind key backup + typed confirmation (#2424)

Signed-off-by: Wes <wesb@block.xyz>
Co-authored-by: npub1cl47vfhsqpqy9pwndphpm36vcp7vvz5h2js4qpqm5yewzj7nutkq7xyw8c <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
This commit is contained in:
Wes
2026-07-22 16:38:52 -06:00
committed by GitHub
parent c96ae0ea97
commit fd967c6ea4
7 changed files with 423 additions and 105 deletions

View File

@@ -9243,6 +9243,11 @@ export function maybeInstallE2eTauriMocks() {
sig: "e2e-signed-nostr-binding",
});
}
case "sign_out":
// Production wipes local state and restarts the app. In the browser
// harness there is nothing to wipe; resolving is enough — specs
// assert invocation via __BUZZ_E2E_COMMANDS__ and the pending UI.
return;
case "get_nsec": {
const nsecSequence = activeConfig?.mock?.nsecErrors;
if (nsecSequence && nsecSequence.length > 0) {