mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #590 from PR0M3TH3AN/codex/request-all-access-in-nip-07-signing
Request full NIP-07 access before signing
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user