Access user email address in Meteor JS app

后端 未结 3 1946
我寻月下人不归
我寻月下人不归 2020-12-30 04:00

I am building an app using Meteor and need to access the stored email address of a logged-in user.

I am currently using:

var userObj = Meteor.user();         


        
3条回答
  •  轮回少年
    2020-12-30 04:51

    You don't specify how you are authenticating users. For example, if you were using Google authentication only, the email address would be found only in

    Meteor.user().services.google.email
    

    So, it depends.

提交回复
热议问题