I need get the current user details after updating the Moralis User object.
Here is my code
await setUserData({ "ethAddress": userEthAddress });
await refetchUserData();
console.log("user", user);
console.log("currentUser", Moralis.User.current());
After the account change event I have update the userData with new user’s ethAddress. But I couldn’t get the updated info. Both user and currentUser is displaying the old user’s userId.