diff options
| author | Adam Soltys <[email protected]> | 2026-09-08 11:19:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-08 11:19:51 -0700 |
| commit | 6ea73cf4f8bad7384f8ead16a1aa6988ae46e545 (patch) | |
| tree | fdb772246b56fdc0622fff3e9a25e10bab11e599 /src/ark/refresh.js | |
| parent | 7b444d6f0750b1ff316204dd5ec4425201c480e9 (diff) | |
| download | coinosv3-6ea73cf4f8bad7384f8ead16a1aa6988ae46e545.tar.gz coinosv3-6ea73cf4f8bad7384f8ead16a1aa6988ae46e545.zip | |
Add "Sign into another account" — switch identities without logging out.
The only way to move between identities (e.g. Adam via a Nostr remote signer and passkeyguy via passkey) was logout → forget all data → sign in again, which wipes every account. But the machinery to hold several accounts at once already exists: enterWallet/addOrGetAccount ADD an account (they don't replace), the unlock screen carries the sign-in doors (Nostr/passkey/Google via unlockExtra) plus a fromWallet Back button, activateAccount cleanly tears down and re-inits per-account nostr-login state, and the Accounts screen already switches between saved accounts. The nostr-login handoff even saves its session AFTER activating the new account, so each identity's signer state lands under its own namespace and resumes silently (persisted passkey sk / bunker session).
The missing piece was a non-destructive entry point. Added a "Sign into another account" button on the Accounts screen that opens the unlock screen in additive mode (ui.fromWallet), so signing in adds the identity alongside the current one — then switching is just tapping a row on the Accounts screen (reached via the balance card's Accounts button), no logout, no data loss.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz
Diffstat (limited to 'src/ark/refresh.js')
0 files changed, 0 insertions, 0 deletions
