fix: restore permission set in loginWithExtension

Updates `js/nostr/client.js` to use `DEFAULT_NIP07_PERMISSION_METHODS` (including encryption) during login, matching the behavior expected by `tests/nostr-login-permissions.test.mjs` and preventing regression in encryption permission tracking.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-31 12:49:26 +00:00
1 parent 353f140ec7
commit 9fa9b66ec4
1 file changed
+1 -1
+1 -1
View File
@@ -2079,7 +2079,7 @@ export class NostrClient {
}
const permissionResult = await this.ensureExtensionPermissions(
DEFAULT_NIP07_CORE_METHODS,
DEFAULT_NIP07_PERMISSION_METHODS,
{ context: "login", logMetrics: true, showStatus: false },
);
if (!permissionResult.ok) {