Open signer apps on desktop, log out remote signers via NIP-46 #135

Merged
raucao merged 2 commits from feature/remote_signers_everywhere into master 2026-11-28 15:41:54 +00:00
Owner

Two related remote-signer improvements.

Open signer apps from any device (#127)

The connect modal no longer calls it a mobile-only signer, and no longer only offers the nostrconnect:// link on mobile. There is now an "Open signer app" link on every device, next to "Copy connection link" and a "Show QR code" toggle (hidden by default). After the link is used, the app watches for the signer taking over the page and otherwise reveals a hint pointing at the QR code and copy link. The mobile-only auto-redirect is gone.

Send a NIP-46 logout when disconnecting a remote signer (#125)

disconnect() clears the local state and the stored client keypair first, then asks the remote signer to drop the session with a NIP-46 logout request (via applesauce's NostrConnectSigner.logout()). The request is a courtesy hint, so a failure is only logged and never blocks the local disconnect. Extension signers still just close their connection.

Closes #127
Closes #125

Tests

pnpm lint is clean and pnpm test passes 519/519, including new integration and unit tests for both changes.

Two related remote-signer improvements. ### Open signer apps from any device (#127) The connect modal no longer calls it a mobile-only signer, and no longer only offers the `nostrconnect://` link on mobile. There is now an "Open signer app" link on every device, next to "Copy connection link" and a "Show QR code" toggle (hidden by default). After the link is used, the app watches for the signer taking over the page and otherwise reveals a hint pointing at the QR code and copy link. The mobile-only auto-redirect is gone. ### Send a NIP-46 logout when disconnecting a remote signer (#125) `disconnect()` clears the local state and the stored client keypair first, then asks the remote signer to drop the session with a NIP-46 `logout` request (via applesauce's `NostrConnectSigner.logout()`). The request is a courtesy hint, so a failure is only logged and never blocks the local disconnect. Extension signers still just close their connection. Closes #127 Closes #125 ### Tests `pnpm lint` is clean and `pnpm test` passes 519/519, including new integration and unit tests for both changes.
raucao added 2 commits 2026-11-28 15:38:24 +00:00
Offer the nostrconnect:// link on desktop too, instead of only on mobile,
and stop calling it a mobile-only signer.

The connect modal now shows an "Open signer app" link on every device,
alongside "Copy connection link" and a "Show QR code" toggle (hidden by
default). When the link is used, watch for the signer app taking over the
page and otherwise reveal a hint pointing at the QR code and copy link.

The mobile-only auto-redirect is gone; launching now happens through the
explicit button on all platforms.

Refs #127
Send a NIP-46 logout when disconnecting a remote signer
CI / Lint (pull_request) Successful in 56s
CI / Test (pull_request) Successful in 1m19s
Release Drafter / Update release notes draft (pull_request) Successful in 15s
f6e3bae0d1
disconnect() now clears the local state and the stored client keypair
first, then asks the remote signer to drop the session with a NIP-46
logout request (via applesauce's NostrConnectSigner.logout()). The
request is a courtesy hint, so a failure is only logged and never blocks
the local disconnect.

Extension signers still just close their connection.

Refs #125
raucao changed title from Open signer apps on desktop and log out remote signers via NIP-46 to Open signer apps on desktop, log out remote signers via NIP-46 2026-11-28 15:38:49 +00:00
raucao added the featurenostrui/uxenhancement labels 2026-11-28 15:39:06 +00:00
raucao merged commit 84d21fd1ed into master 2026-11-28 15:41:54 +00:00
raucao deleted branch feature/remote_signers_everywhere 2026-11-28 15:41:54 +00:00
Sign in to join this conversation.