This commit is contained in:
Luke Berndt
2021-03-04 10:59:34 -05:00
parent e2cc14d540
commit 943c5a63ad
3 changed files with 2 additions and 4 deletions

View File

@@ -4,8 +4,7 @@ const User = require("../../models/user");
const twitter = new Strategy({ const twitter = new Strategy({
consumerKey: process.env['TWITTER_CONSUMER_KEY'], consumerKey: process.env['TWITTER_CONSUMER_KEY'],
consumerSecret: process.env['TWITTER_CONSUMER_SECRET'], consumerSecret: process.env['TWITTER_CONSUMER_SECRET'],
callbackURL: '/oauth/callback', callbackURL: '/oauth/callback'
proxy: trustProxy
}, },
function(token, tokenSecret, profile, cb) { function(token, tokenSecret, profile, cb) {
// In this example, the user's Twitter profile is supplied as the user // In this example, the user's Twitter profile is supplied as the user

View File

@@ -1,7 +1,6 @@
/* Initializing PassportJS */ /* Initializing PassportJS */
const User = require("../models/user"); const User = require("../models/user");
const local = require("./passport-strategies/local"); const local = require("./passport-strategies/local");
const twitter = require("./passport-strategies/twitter");
module.exports = function (app, passport) { module.exports = function (app, passport) {
// Configure Passport authenticated session persistence. // Configure Passport authenticated session persistence.