Prior to the latest update, both MetaMask and WalletConnect succeeded. Upon the SDK update, and required code changes; WalletConnect does not appear anymore.
I’ve since migrated to Ethers.js via the SDK update yet only MetaMask works now.
let user = await Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({ provider: "walletconnect", signingMessage: "Log in using Moralis" })
.then(function (user) {
if (user) {
console.log("(Authorized) WalletConnect User:", user); // user.get("ethAddress")
}
})
.catch(function (error) {
//console.log('(WalletConnect) Error:', error);
});
}
Yes, Moralis.ensureWeb3IsInstalled(); & await Moralis.enableWeb3(); are both called prior to this code’s parent function.