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:
app.route('/api/auth/reddit')
.get(passport.authenticate('reddit', {
state: ' ',
duration: 'permanent',
failureRedirect: '/auth/login',
}), users.signin);
app.route('/api/auth/reddit/callback')
.get(passport.authenticate('reddit', {
failureRedirect: '/auth/login',
}), users.authCallback);
source
share