Skip to content

Commit 050f930

Browse files
committed
fixes error handling bug
1 parent 98bab30 commit 050f930

File tree

5 files changed

+54
-11566
lines changed

5 files changed

+54
-11566
lines changed

demo/vue-app-new/src/MainView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
3-
import { CHAIN_NAMESPACES, coinbaseConnector, ConnectorFn, CustomChainConfig, getChainConfig, nftCheckoutPlugin, PluginFn, storageAvailable, UX_MODE, WALLET_CONNECTORS, walletConnectV2Connector, walletServicesPlugin, type Web3AuthOptions } from "@web3auth/modal";
3+
import { authConnector, CHAIN_NAMESPACES, coinbaseConnector, ConnectorFn, CustomChainConfig, getChainConfig, nftCheckoutPlugin, PluginFn, storageAvailable, UX_MODE, WALLET_CONNECTORS, walletConnectV2Connector, walletServicesPlugin, type Web3AuthOptions } from "@web3auth/modal";
44
import { Web3AuthContextConfig, Web3AuthProvider } from "@web3auth/modal/vue";
55
import { WalletServicesProvider } from "@web3auth/no-modal/vue";
66
import { computed, onBeforeMount, ref, watch } from "vue";
@@ -92,7 +92,7 @@ const options = computed((): Web3AuthOptions => {
9292
// useCoreKitKey?: boolean;
9393
chains,
9494
enableLogging: true,
95-
connectors: externalConnectors.value,
95+
connectors: [...externalConnectors.value, authConnector({ connectorSettings: { buildEnv: "development" }, loginSettings: { mfaLevel: "mandatory"}})],
9696
plugins,
9797
multiInjectedProviderDiscovery: formData.multiInjectedProviderDiscovery,
9898
walletServicesConfig,
@@ -125,7 +125,7 @@ const getExternalAdapterByName = (name: string): ConnectorFn[] => {
125125
case "coinbase":
126126
return [coinbaseConnector()];
127127
case "wallet-connect-v2":
128-
return [walletConnectV2Connector({ projectId: "d3c63f19f9582f8ba48e982057eb096b" })];
128+
return [walletConnectV2Connector()];
129129
default:
130130
return [];
131131
}

0 commit comments

Comments
 (0)