From b8c65885f4e24a512efb10f9843749b4ec5fad61 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 13:22:43 +0000 Subject: [PATCH] fix(nip46): update useStoredRemoteSigner to accept validator and fix connectRemoteSigner bug - Updated `NostrClient.connectRemoteSigner` signature to `connectRemoteSigner(options = {})`, fixing a `ReferenceError` where the code was attempting to access `options.validator` while `options` was not defined (due to direct destructuring in the signature). - Added JSDoc documentation for the `validator` parameter in both `connectRemoteSigner` and `useStoredRemoteSigner`. - Cleaned up outdated TODO comments in `js/services/authProviders/nip46.js`. - Verified that the `validator` is correctly extracted from `options` and called during session restoration. - Confirmed that unit tests in `tests/services/auth-providers.test.mjs` pass. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com>