wallet-connect-button-react 1.0.5 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -604,13 +604,19 @@ function WalletConnectButton(_a) {
604
604
  console.log("Disclosed attributes:", data);
605
605
  // Extract age_over_18 from nested response structure
606
606
  onSuccess(data);
607
- // Remove session_token from URL after successful retrieval
607
+ // Remove session_token and nonce from URL after successful retrieval
608
608
  removeSearchParam('session_token');
609
+ if (nonce)
610
+ removeSearchParam('nonce');
609
611
  setLoading(false);
610
612
  })
611
613
  .catch(function (error) {
612
614
  console.log(error.message);
613
615
  setError(error.message);
616
+ // Remove session_token from URL after failed request
617
+ removeSearchParam('session_token');
618
+ if (nonce)
619
+ removeSearchParam('nonce');
614
620
  setLoading(false);
615
621
  });
616
622
  }, [searchParams, onSuccess]);