为什么不';我的Meteor用户对象中没有任何电子邮件地址吗?

为什么不';我的Meteor用户对象中没有任何电子邮件地址吗?,meteor,meteor-accounts,Meteor,Meteor Accounts,我正在使用Meteor 1.0和帐户google登录服务 我请求这些权限 requestPermissions: google: [ 'https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/userinfo.profile' ] 成功登录后,当我查看服务器上Mongo shell中的用户对象时,我在用户文档中的任何地方都看不到任何电子邮件 我的印象是,Meteor将存储用于

我正在使用Meteor 1.0和帐户google登录服务

我请求这些权限

requestPermissions:
  google: [
    'https://www.googleapis.com/auth/calendar',
    'https://www.googleapis.com/auth/userinfo.profile'
  ]
成功登录后,当我查看服务器上Mongo shell中的用户对象时,我在用户文档中的任何地方都看不到任何电子邮件

我的印象是,Meteor将存储用于登录Google的任何电子邮件地址


如何获取电子邮件?

您是否已将您的电子邮件字段发布给客户

if (Meteor.isServer) {

    Meteor.publish('', function () {
        if (this.userId)
            return Meteor.users.find({ _id: this.userId }, { fields: { services: false } });
        else
            return this.stop();
    });
}

显然我需要得到许可:

”https://www.googleapis.com/auth/userinfo.email“


现在它可以工作了。

不,我还没有,但这不是我遇到的问题。问题是数据库中的数据没有电子邮件。无法发布不存在的内容。