wallet-connect-button-vue 1.0.10 → 1.0.11
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 +4 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -46,7 +46,7 @@ const _sfc_main = {
|
|
|
46
46
|
props: {
|
|
47
47
|
label: { type: String, required: false, default: 'Inloggen met NL Wallet' },
|
|
48
48
|
clientId: { type: String, required: true },
|
|
49
|
-
onSuccess: { type: Function, required:
|
|
49
|
+
onSuccess: { type: Function, required: false },
|
|
50
50
|
apiKey: { type: String, required: false },
|
|
51
51
|
walletConnectHost: { type: String, required: false },
|
|
52
52
|
lang: { type: String, required: false, default: 'nl' },
|
|
@@ -127,7 +127,9 @@ const fetchDisclosedAttributes = async () => {
|
|
|
127
127
|
try {
|
|
128
128
|
const { data } = await axios.get(url, { headers });
|
|
129
129
|
console.log("Disclosed attributes:", data);
|
|
130
|
-
props.onSuccess
|
|
130
|
+
if (props.onSuccess) {
|
|
131
|
+
props.onSuccess(data);
|
|
132
|
+
}
|
|
131
133
|
removeSearchParam('session_token');
|
|
132
134
|
if (nonce) removeSearchParam('nonce');
|
|
133
135
|
loading.value = false;
|