mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-29 17:02:28 +00:00
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:
1 parent
353f140ec7
commit
9fa9b66ec4
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user