【问题标题】:Return email from Reddit with passport-reddit使用护照-reddit 从 Reddit 返回电子邮件
【发布时间】:2015-11-14 16:53:46
【问题描述】:

我正在使用 passport-reddit 在我的 node.js Web 服务器上实现 Reddit 登录系统。我拥有的系统会返回我需要为我的用户提供的所有信息,但他们的电子邮件地址除外。 我想知道社区中是否有人知道告诉 Reddit 返回电子邮件地址的范围,或者是否有可能。

我目前的 Reddit 路线:

// Setting the reddit oauth routes
  app.route('/api/auth/reddit')
    .get(passport.authenticate('reddit', {
      state: ' ',
      duration: 'permanent',
      failureRedirect: '/auth/login',
      //scope: ['email']
    }), users.signin);

  app.route('/api/auth/reddit/callback')
    .get(passport.authenticate('reddit', {
      failureRedirect: '/auth/login',
    }), users.authCallback);

【问题讨论】:

    标签: node.js passport.js mean.io


    【解决方案1】:

    OP 的问题已经过时了,我将链接到的答案也是如此。似乎返回任何个人信息都违反了 reddit 的“规则”。

    https://www.reddit.com/r/redditdev/comments/2lrcdv/oauth2_featureapi_request_being_able_to_see_the/

    您可以检索 reddit 用户的用户名,但没有名字/姓氏,电子邮件。

    返回许多其他数据,但可能对您没有用处。

     verified: false,
     over_18: true,
     is_gold: false,
     is_mod: false,
     has_verified_email: true,
    

    等...

    【讨论】:

      猜你喜欢
      • 2012-07-22
      • 2020-12-05
      • 2020-12-25
      • 2023-03-11
      • 2015-12-12
      • 2016-04-01
      • 2017-06-19
      • 2016-11-25
      • 2016-11-10
      相关资源
      最近更新 更多