From c6d82fb408a0bb6c7cd0ca07f04f433a7659b787 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 11 Oct 2025 21:33:41 -0400 Subject: [PATCH] Extend NIP-07 enable timeout --- js/nostr.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/nostr.js b/js/nostr.js index d6fa4f52..bc750244 100644 --- a/js/nostr.js +++ b/js/nostr.js @@ -62,7 +62,11 @@ const NIP07_LOGIN_TIMEOUT_MS = 60_000; // 60 seconds const NIP07_LOGIN_TIMEOUT_ERROR_MESSAGE = "Timed out waiting for the NIP-07 extension. Confirm the extension prompt in your browser toolbar and try again."; -const DEFAULT_ENABLE_VARIANT_TIMEOUT_MS = 7000; +// Give the NIP-07 extension enough time to surface its approval prompt and let +// users unlock/authorize it. Seven seconds proved too aggressive once vendors +// started requiring an unlock step, so we extend the window substantially while +// still allowing manual overrides via __BITVID_NIP07_ENABLE_VARIANT_TIMEOUT_MS__. +const DEFAULT_ENABLE_VARIANT_TIMEOUT_MS = 45_000; function getEnableVariantTimeoutMs() { const overrideValue =