来自文档http://docs.meteor.com/#/full/meteor_loginwithexternalservice
首先,添加服务配置包:
meteor add service-configuration
然后,在您的应用中:
// first, remove configuration entry in case service is already configured
ServiceConfiguration.configurations.remove({
service: "weibo"
});
ServiceConfiguration.configurations.insert({
service: "weibo",
clientId: "1292962797",
loginStyle: "popup",
secret: "75a730b58f5691de5522789070c319bc"
});
尝试
// first, remove configuration entry in case service is already configured
ServiceConfiguration.configurations.remove({
service: "twitter"
});
ServiceConfiguration.configurations.insert({
service: "twitter",
consumerKey: "1292962797",
loginStyle: "popup",
secret: "keyyyyy"
});