Hello,
when I am trying to use the walletserviceplugin for swap, I got the following error:
- SDK Version(package.json):
“web3auth/auth-adapter”: “^9.6.0”,
“web3auth/base”: “^9.6.0”,
“web3auth/ethereum-provider”: “^9.6.0”,
“web3auth/no-modal”: “^9.6.0” - Platform: next.js
- Browser Console Screenshots:
Web3Auth initialization and login code snippet
const web3authInstance = new Web3AuthNoModal({
clientId,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
privateKeyProvider: ethereumPrivateKeyProvider,
uiConfig: {
logoLight: "https://web3auth.io/images/web3auth-logo.svg",
logoDark: "https://web3auth.io/images/web3auth-logo---Dark.svg",
defaultLanguage: "en", // en, de, ja, ko, zh, es, fr, pt, nl
},
});
const authAdapter = new AuthAdapter();
web3authInstance.configureAdapter(authAdapter);
const walletServicesPlugin = new WalletServicesPlugin();
await web3authInstance.init();
setWeb3auth(web3authInstance);
setProvider(web3authInstance.provider);
web3authInstance.addPlugin(walletServicesPlugin); // Add the plugin to web3auth
setWalletServicesPlugin(walletServicesPlugin);
setIsInitialized(true);
Thanks!
Update: I can login using the initialization above, but my colleague is experiencing this error:
[{"errorMsg":"Failed to fetch","errorStack":"Error: Failed to fetch\n at wt (https://auth.web3auth.io/v9/assets/index-DTyerrT2.js:2:2549)\n at https://auth.web3auth.io/v9/assets/index-DTyerrT2.js:2:10940","title":"Mount Error","createdAt":"3/7/2025, 9:08:12 AM","info":{"customAuthState":{"client":"BA79c9hE1uU1QrDOOqXKy_i1T-RpJgh20dq9OvLsFV_pWobbQmjxx7taPTv6ioypL-oVm8yEZ9pVIREdKCDbkNo","currentLoginProvider":"google","popupWindow":"true","whiteLabel":"{\"mode\":\"light\"}","keyMode":"v1","loginId":"df2698a84605e64308c3626e25c4a1e366fd9148fffbfc04d60795816aa11caf","sessionNamespace":"","socialFactorFlow":"","version":"9","instanceId":"subx5xvj71m","verifier":"web3auth","typeOfLogin":"google","redirectToOpener":false},"customAuthArgs":...