EnableWeb3() is not working after authenticate method

After authenticate method Moralis.enableWeb3({ provider: ‘walletconnect’, chainId: 56 }) is not working and both methods are showing QR.

async walletConect() {
      console.log(user);
      if (!user) {
        var self = this;
        user = await Moralis.authenticate({
          provider: 'walletconnect',
          chainId: 56,
          signingMessage: 'Welcome',
        })
          .then(function (user) {
            console.log(user);

            self.triggerConnect(user);
          })
          .catch(function (error) {
            console.log(error);
          });
      }
      await Moralis.enableWeb3({ provider: 'walletconnect', chainId: 56 });
    },

If authenticated, web3 is enabled, but if web3 instance is missing maybe after a refresh or in any other form, that’s when enableWeb3 is needed.

Maybe you can explain more on the expected behaviour.

As I know after walletConnect method call it must be called enableWeb3 to sign. But this code gives me 2 QR modals I mean that enableWeb3 also generates a QR code. Also after scanning Qr, it not shows me a sign message.

Enable web3 won’t require you sign a message, authenticate requires that rather.

Ok. Is this code correct or I am missing something after connecting it does not show me a sign message.

async walletConect() {
      console.log(user);
      if (!user) {
        var self = this;
        user = await Moralis.authenticate({
          provider: 'walletconnect',
          chainId: 56,
          signingMessage: 'Welcome',
        })
          .then(function (user) {
            console.log(user);

            self.triggerConnect(user);
          })
          .catch(function (error) {
            console.log(error);
          });
      }

    },

What wallet are you using? Does it connect fine? You may need to re-try it and go back to your wallet, sometimes the signature request doesn’t always show up.

Ok I will try thanks