我正在努力获取 Twitter 用户登录时的电子邮件地址
我从 Joi 收到以下错误“错误:未捕获的错误:无效的选项值:必须为真、假或对象”
server.auth.strategy('twitter', 'bell', {
provider: 'twitter',
scope: ['public_profile', 'email'],
config: {
extendedProfile: true,
getParams: 'include_email',
getMethod: 'account/verify'
},
password: config.longpass, //Use something more secure in production
clientId: config.twitter_key,
clientSecret: config.twitter_secret,
isSecure: config.useHttps //Should be set to true (which is the default) in production
});