Skip to content

Commit f8f2923

Browse files
displayErrorsOnModal param added in web3auth
1 parent 968ad57 commit f8f2923

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

examples/vue-app/src/chains/ethereum.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ export default Vue.extend({
113113
try {
114114
this.parseConfig();
115115
this.loading = true;
116-
this.web3auth = new Web3Auth({ chainConfig: ethChainConfig, clientId: config.clientId, authMode: "DAPP", enableLogging: true });
116+
this.web3auth = new Web3Auth({
117+
chainConfig: ethChainConfig,
118+
clientId: config.clientId,
119+
authMode: "DAPP",
120+
enableLogging: true,
121+
});
117122
const openloginAdapter = new OpenloginAdapter({
118123
adapterSettings: {
119124
network: this.openloginNetwork as OPENLOGIN_NETWORK_TYPE,

packages/adapters/wallet-connect-v1-adapter/src/walletConnectV1adapter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ class WalletConnectV1Adapter extends BaseAdapter<void> {
217217
}, Please switch to correct network from wallet`
218218
)
219219
);
220+
this.status = ADAPTER_STATUS.READY;
221+
this.rehydrated = true;
220222
return;
221223
}
222224
}

packages/modal/src/modalManager.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ export interface Web3AuthOptions extends Web3AuthCoreOptions {
5959
* Config for configuring modal ui display properties
6060
*/
6161
uiConfig?: UIConfig;
62+
63+
/**
64+
* Whether to show errors on Web3Auth modal.
65+
*
66+
* @defaultValue `true`
67+
*/
68+
displayErrorsOnModal?: boolean;
6269
}
6370
export class Web3Auth extends Web3AuthCore {
6471
public loginModal: LoginModal;
@@ -95,6 +102,7 @@ export class Web3Auth extends Web3AuthCore {
95102
appLogo: this.options.uiConfig?.appLogo || "",
96103
version: "",
97104
adapterListener: this,
105+
displayErrorsOnModal: this.options.displayErrorsOnModal,
98106
});
99107
this.subscribeToLoginModalEvents();
100108
}

0 commit comments

Comments
 (0)