Request full NIP-07 access before signing

This commit is contained in:
thePR0M3TH3AN committed 2025-10-15 23:03:57 -04:00
1 parent 28bfc32f66
commit 37b3aa3d02
1 file changed
+4 -1
+4 -1
View File
@@ -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) {