Get current user email and add to collection

let userEmail;
let user = wixUsers.currentUser;

$w.onReady( async function () {
await user.getEmail()
.then( (email) => {
userEmail = email;

}); 
console.log(userEmail); 

});

I have faced same issue Now I am able to get logged in user email