When running the build file for electron version, it thows error where web3auth is not initialized as the client id is not whitelisted for file://
@arpit Thanks for your post.
I think the reason here might be related to wrong web3authNetwork
parameter in the web3auth constructor code. Just make sure the client id and verifier are on the same network for it to work properly.
Have you specified the web3AuthNetwork
parameter during the Web3Auth Modal initialization ?
I’ll paste a snippet here for your reference on where should it go.
const web3auth = new Web3Auth({
clientId,
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x1",
rpcTarget: "https://rpc.ankr.com/eth", // This is the public RPC we have added, please pass on your own endpoint while creating an app
},
web3AuthNetwork: "cyan", // Within the quotes is the network
});
Currently, we have a migration in progress from Mainnet to Sapphire so you might experience some temporary issues on this network until it is complete. Avoid using Mainnet until then.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.