mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
0.6.6 enforces the nostrconnect handshake secret. Previously a signer could answer the connect request with result: "ack" and skip proving it could decrypt the secret, so any relay-connected party who saw the nostrconnect URI could claim the session and become the user's signer. The 0.6.6 NostrLoginProvider now resolves stored logins on a microtask (rendering a null fallback until storage resolves) rather than synchronously. Component/hook tests render and query immediately, so they observed an empty tree. Mock @nostrify/react/login in the test setup with a synchronous provider and matching useNostrLogin hook, passing every other export (NLogin, NUser, the connect helpers) through from the real module untouched.