From 37b3aa3d024a12818966513210d71a8674e0f6d2 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 15 Oct 2025 23:03:57 -0400 Subject: [PATCH] Request full NIP-07 access before signing --- js/nostr.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/nostr.js b/js/nostr.js index 1c8251d8..e70a27d1 100644 --- a/js/nostr.js +++ b/js/nostr.js @@ -3126,13 +3126,16 @@ export class NostrClient { return { ok: true, code: "enable-unavailable" }; } - const permissionVariants = [null]; + // Always request the full set of methods first so extensions surface the + // "All Access" prompt instead of defaulting to "Get Public Key" only. + const permissionVariants = []; if (outstanding.length) { permissionVariants.push({ permissions: outstanding.map((method) => ({ method })), }); permissionVariants.push({ permissions: outstanding }); } + permissionVariants.push(null); let lastError = null; for (const options of permissionVariants) {