Email Reddit with passport-reddit

I am working on implementing a Reddit login system on node.js web server using passport-reddit. The system I use returns all the information I need for my users, with the exception of their email address. I wonder if anyone in the community knows which area to include in order to inform Reddit about the return of the email address or even if it is possible.

My current Reddit routes:

// 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);
+4
source share
1 answer

The OP question is pretty outdated, so is the answer I'm referring to. It seems that returning something personal is contrary to the โ€œrulesโ€ of 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,

ETC...

0

Source: https://habr.com/ru/post/1615896/


All Articles