with the function
async function login() {
let user = Moralis.User.current();
if (!user) {
try {
user = await Moralis.authenticate({ signingMessage: "hello" })
await Moralis.enableWeb3();
console.log(user)
console.log(user.get('ethAddress'))
} catch(error) {
console.log(error)
}
}
}
i want users to be able to login with both metamask and walletconnect…Please can you help out with the code…a simple page with two buttons. one for metamask login and the other for wallet connect.
Thanks