My website has a login function to provide users information’s related to their accounts only
On a specific page (which is member only), I need to pick up the email to filter data
Here is the code:
userEmail = wixUsers.currentUser.getEmail();
var res = String(userEmail);
My variable res is not the email but the value [Object Promise]
Any ideas about my mistake ?