Get current user email and add to collection

I’m using Google authentication to log in the user. The proposed codes doesn’t work, I cannot get the user’s email address. loggedIn property of the currentUser returns true so I’m pretty sure that the user is logged in but getEmail returns nothing. Is this something related to Google authentication?