Web3Auth & Moralis

Hi guys,

I configurated moralis with web3auth, when a user logins into my dapp his address is save it into the database of moralis, but i want to save the email too. The thing is i am reading the documentation of web3auth to recover the email of the user, but doesnt work for me.

Im attaching my code and the errors that the console gives me.

You will need to adjust the Web3Auth connector where getUserInfo will work:

// Gather User data
try {
  const userInfo = await web3auth.getUserInfo();


From there, you could look at getting this email saved or retrievable in some way.