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 +7 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -608,13 +608,19 @@ function WalletConnectButton(_a) {
|
|
|
608
608
|
console.log("Disclosed attributes:", data);
|
|
609
609
|
// Extract age_over_18 from nested response structure
|
|
610
610
|
onSuccess(data);
|
|
611
|
-
// Remove session_token from URL after successful retrieval
|
|
611
|
+
// Remove session_token and nonce from URL after successful retrieval
|
|
612
612
|
removeSearchParam('session_token');
|
|
613
|
+
if (nonce)
|
|
614
|
+
removeSearchParam('nonce');
|
|
613
615
|
setLoading(false);
|
|
614
616
|
})
|
|
615
617
|
.catch(function (error) {
|
|
616
618
|
console.log(error.message);
|
|
617
619
|
setError(error.message);
|
|
620
|
+
// Remove session_token from URL after failed request
|
|
621
|
+
removeSearchParam('session_token');
|
|
622
|
+
if (nonce)
|
|
623
|
+
removeSearchParam('nonce');
|
|
618
624
|
setLoading(false);
|
|
619
625
|
});
|
|
620
626
|
}, [searchParams, onSuccess]);
|