Я изо всех сил пытаюсь получить адрес электронной почты пользователей 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
});