Hello,
Iām trying to add users by metamask address and add a role to each user, my problem is, after i add the user and save it in moralis database, when i trying to connect with that user, he canāt identifier that the user already exists in moralis database and it will create a new account for that user !
the code to add new user by metamask address
try {
const _user = new Moralis.User();
_user.set(āusernameā,data.username);
_user.set(āemailā,data.email);
_user.set(āaccountsā,[data.metamask_address]);
_user.set(āpasswordā,generateString(15));
_user.set(āroleā,role);
_user.set(āethAddressā, data.metamask_address)
await _user.signUp();
} catch (error) {
console.log("error ===>",error)
}