fix(auth): make IndeeHub sign-out forget app selection

This commit is contained in:
archipelago
2026-10-09 05:49:47 -04:00
parent 44a3334f99
commit b537009198
8 changed files with 86 additions and 0 deletions
+9
View File
@@ -194,6 +194,15 @@
try {
['nostr_token', 'nostr_pubkey', 'refresh_token'].forEach(function (key) { sessionStorage.removeItem(key); });
} catch (_) {}
// Signing out is also an explicit request to stop the dashboard from
// restoring this app's remembered identity on its next load. The broker
// forgets only the app-to-identity selection; node identities and keys are
// preserved and remain available for a later explicit sign-in.
postToSigner({
type: embedded
? 'archipelago:identity:clear'
: 'archipelago:signer-clear-session',
});
}
function scheduleIdentityAuth(pubkey) {