Issue with web3Auth not properly connecting to Metamask

Hey there, I've been having an issue with web3Auth and could use some help. Sometimes, when I try to connect my MetaMask, the web3Auth modal prompts me for verification, but the MetaMask window doesn't pop up. Even when I click on the extension, nothing happens - it just shows my account. This issue keeps reoccurring in several scenarios, for example:
1. When I first build my Next.js project and the cachedAdapter and connectedAdapterName of web3Auth are null (in this case I have reinstalled my MetaMask and the account has never been connected to the DApp previously).
2. When the cachedAdapter is "metamask", but the connectedAdapterName is null. In this case, the login options are not provided, web3Auth modal instantly displays "Verify on your Account to continue" without a MetaMask login image - the resource fails to load. (This happens when the account has been previously connected to the DApp, I close the window without logging out and then re-open the page in a new tab).
The issue resolves itself if I refresh the page. I would really appreciate any help you can offer to resolve it. Thanks!



Originally posted by: gabyteera

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1296

@psaini.php Please avoid commenting on old threads, you have raised a seperate thread, please stick to that and adhere to the community guidelines FAQ - Web3Auth Community