mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
clean up
This commit is contained in:
@@ -4,8 +4,7 @@ const User = require("../../models/user");
|
||||
const twitter = new Strategy({
|
||||
consumerKey: process.env['TWITTER_CONSUMER_KEY'],
|
||||
consumerSecret: process.env['TWITTER_CONSUMER_SECRET'],
|
||||
callbackURL: '/oauth/callback',
|
||||
proxy: trustProxy
|
||||
callbackURL: '/oauth/callback'
|
||||
},
|
||||
function(token, tokenSecret, profile, cb) {
|
||||
// In this example, the user's Twitter profile is supplied as the user
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/* Initializing PassportJS */
|
||||
const User = require("../models/user");
|
||||
const local = require("./passport-strategies/local");
|
||||
const twitter = require("./passport-strategies/twitter");
|
||||
|
||||
module.exports = function (app, passport) {
|
||||
// Configure Passport authenticated session persistence.
|
||||
|
||||
Reference in New Issue
Block a user