Adding walletconnect was pretty easy, big thanks to you guys at Moralis! I’m testing in the live server right now and I can use my phone to scan the QR code for mobile, but when I switch over to desktop it looks like this:
is there any way to add it so that metamask shows up as well?
here is the code I am using:
login = async () => {
const web3 = await Moralis.enable();
try {
currentUser = await Moralis.User.current();
if (!currentUser) {
currentUser = await Moralis.authenticate({
provider: "walletconnect",
chainId: 0x38,
mobileLinks: [
"rainbow",
"metamask",
"argent",
"trust",
"imtoken",
"pillar",
]
}).then(function (user) {
console.log(user.get('ethAddress'))
})
}
console.log(currentUser);
document.getElementById("connectWalletBtn").style.display = "none";
document.getElementById("connectWalletBtnRt").style.display = "none";
document.getElementById("BudsRewardsDapp").style.display = "block";
document.getElementById("logoutBtn").style.display = "block";
totalRewards();
} catch (error) {
console.log(error);
}
}