Using web3auth-wagmi-connector, setting "autoconnect" opens the Web3AuthModal on page load

  • SDK Version: 6.1.7
  • Platform: Web

When using web3auth-wagmi-connector and setting “autoconnect” to true in wagmi’s createConfig, the Web3Auth modal opens on page load if there is no previous connection.

If it’s expected behaviour, is there a way to modify it so that the user has to click manually for the modal to open?

Basically, we don’t want the modal to open when users first visit the app, but we want it to autoconnect if they were previously connected.

Thank you!

@afarley Thanks for your recent communication.

Your request has been forwarded to our team and will get back with further updates once more information becomes available.

1 Like

This is not an expected issue. Can you please check our examples here if you can see the same error there?

Please have a look at the examples code which can help you with the flow.

The error is still present, but I was able to fix using:
autoConnect: localStorage.getItem('Web3Auth-cachedAdapter') !== null