After logged in using external wallet (metamask), refresh the page, and then switchChain multiple times ( for example, switch between 0x1 and 0x5 back and forth), web3auth will disconnect , ADAPTER_EVENTS.DISCONNECTED event will be triggered, while metamask is still connected. If I execute switchChain again, it will switch success, but metamask modal will not pop out. If I log out, it will report an error :
To Reproduce
Steps to reproduce the behavior:
Start from web3uath-pnp-examples/web-modal-sdk/evm/react-evm-modal-example, connect with metamask
SwitchChain function in react-evm-modal-example switch from 0x1 to 0x5, add a new function to swtich back from 0x5 to 0x1, and listen ADAPTER_EVENTS.DISCONNECTED event
refresh page
switch back and forth multiple times
web3auth will disconnect, ADAPTER_EVENTS.DISCONNECTED event will be triggered, execute switchChain again, it will switch success, but metamask modal will not pop out. If you log out, it will report an error
Expected behavior
web3auth remain connected
Device: [e.g. iPhone6]
OS: windows wsl
Browser firefox
Web3Auth Version "@web3auth/base": "^6.1.1",
"@web3auth/modal": "^6.1.1",
Describe the bug
After logged in using external wallet (metamask), refresh the page, and then switchChain multiple times ( for example, switch between 0x1 and 0x5 back and forth), web3auth will disconnect , ADAPTER_EVENTS.DISCONNECTED event will be triggered, while metamask is still connected. If I execute switchChain again, it will switch success, but metamask modal will not pop out. If I log out, it will report an error :
To Reproduce
Steps to reproduce the behavior:
Expected behavior
web3auth remain connected