aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index c9b690a..af7421d 100644
--- a/src/app.js
+++ b/src/app.js
@@ -4065,6 +4065,9 @@ const ctx = {
// support) — lazy so it resolves against the final FEATURES list, and a
// build without the target feature simply gets null back
hook: (name, ...args) => featureHook(name, ...args),
+ // full sign-out (distinct from the padlock's lock-in-place): clear the
+ // session and leave — offering a password if none protects the vault yet
+ logout: () => { lock({ offerPassword: true }); },
getAccount: () => accountSel(),
setAccount: (a, dir) => setAccountSel(a, dir),
// Open (or create) a wallet from a mnemonic — used by nostr login.