I use Web3Auth for user authentication. I can retrieve user’s email from the localStorage.
I could’t figure out how to save the email on Moralis db. Here is the code.
let openlogin_store = localStorage.openlogin_store;
console.log("openlogin_store:",openlogin_store);
let email = JSON.parse(openlogin_store).email;
console.log("email:", email)
let user = new Moralis.User();
user.set("email", `${email}`);
Last part is not executed. So, I found no email saved on dashboard.
How can I fix this?
Thank you.