我正在尝试按照本指南集成 Meteor UserAccounts Bootstrap 包。
我已经ServiceConfiguration为这两项服务设置了正确的设置,但只有谷歌出现。我也尝试添加 Twitter,但即使这样也不起作用。有谁知道我错过了什么?
包裹 -
meteor-platform
accounts-password
iron:router
aldeed:collection2
useraccounts:bootstrap
nemo64:bootstrap
less
accounts-google
service-configuration
fortawesome:fontawesome
accounts-facebook
accounts-twitter
服务器上的帐户配置 -
// /server/lib/config/accoutns.js
Meteor.startup(function() {
// Add Facebook configuration entry
ServiceConfiguration.configurations.update(
{ service: "facebook" },
{ $set: {
appId: "xxxxxxxxxxxxxxxxxxxx",
secret: "xxxxxxxxxxxxxxxxxxx"
}
},
{ upsert: true }
);
// Add Google configuration entry
ServiceConfiguration.configurations.update(
{ service: "google" },
{ $set: {
clientId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
client_email: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
secret: "XXXXXXXXXXXXXXXXXXXXXXXX"
}
},
{ upsert: true }
);
ServiceConfiguration.configurations.update(
{ service: "twitter" },
{ $set: {
consumerKey: "XXXXXXXXXXXX",
secret: "XXXXXXXX"
}
},
{ upsert: true }
);
});
但这就是所有出现的 -

EDIT1:我刚刚注意到一些非常有趣的事情。我在我朋友的 macbook 上克隆了这个确切的项目,一切都按预期进行。(我之前使用的是 Linux mint 17)。我认为这是某种错误,但不确定这里的罪魁祸首。