[SOLVED] WalletConnect not working and opens Metamask to sign request

Hey guys,

I’ve set up Moralis Auth on my dapp as outlined here: https://docs.moralis.io/docs/nodejs-demo-parse-server-migration-react-client

Metamask works perfectly, however walletconnect doesn’t work. I can scan the barcode and press connect, but after clicking connect (from my phone), metamask opens up and asks to sign the message. If I sign using Metamask, it says invalid auth (as it should since the request wasn’t from mm).

How can I set up wallet connect so that I’m able to sign the message from my phone?

Note: I looked at your guide here: https://v1docs.moralis.io/moralis-dapp/users/web3-login/walletconnect
however in this case the set is really different from the set up in parse server client.

Thanks!

what do you mean with the part that request wasn’t from metamask?

try to increase the default timeout that is of 15 seconds to more (in the request_message function)

When I try connecting my wallet to the website using wallet connect, metamask pops up and asks to sign the request.

Have you added the provider to authenticate? It sounds as if it is still using the default injected provider instead of WalletConnect.

For the demo it would go here similar to enableWeb3:

await authenticate({
        provider,
        signingMessage: message,
        throwOnError: true,
      });
1 Like

That was the issue. Once again, thank you guys!!