I have a strange issue with my site. I have implemented web3Auth, and it performs as expected. I have also implemented the network switching component from the ethereum boilerplate. When i first authenticate with web3Auth (using Metamask), my home screen is displayed, and I am connected to the ethereum mainnet.
If I try to switch networks, I get the following error:
Cannot call switchNetwork, as it does not exist on connector type "web3Auth"
If i refresh my browser, everything works as expected. I can switch networks without any errors. I only get this error when i try to switch networks the first time. After refresh, everything is beautiful.
Scratching my head on this problem.