How can I link address to existing email login account?

How can I link address to existing email login account with react-moralis?

The flow is like this

  1. User registers with email and password
  2. Moralis server registers the user without Eth address
  3. User link wallet with the email login account

I think somehow I need to get user’s wallet eth address and link it.

How can I get the eth address?
I don’t want to ask user like “Hey, please copy and paste your address”
Maybe there is more sophisticated way like one click and done.

Also after linking the address, user will be able to login with Metamask?

1 Like

User will be able to login with MetaMask after that. Usually you have to call enableWeb3 or the equivalent in react to be able to get the address

1 Like

Yeah cryptokid, Thanks. Maybe you’re right. But that’s my question.

Does anyone know how to get the address by react-moralis?