Connect wallet on Email Login

Hi, I’m trying to connect the user who registered with email/username with their metamask. However, whenever I try to use Moralis.authenticate(); It generates new user.

You can use

How do I get the account value? The triggering point in the tutorial is Moralis.onAccountsChanged

What if I want to trigger it using a button?

How do I get the account value?

Ask user to input it manually or use web3.eth.getAccounts()

<button onClick={() => }>Link Account</button>