How to get the user email address when using accounts-password package?


#1

When i’m using accounts-password package for my app, I can call Meteor.userId() to get the id of logged-in user. My question is how do I get the email address of the currently Logged -in ?


#2

Are you looking to display the information to client or to do processing with the information on the server side?


#3

Hi, try this.
Meteor.user().emails[0].address


#4

Thanks, it works the way i want it for now.