#StackBounty: #javascript #node.js #express #passport.js How to dynamically configure Passportjs strategies?

Bounty: 500

I am playing around with passport, and configuring my twitter login this way:

passport.use(new TwitterStrategy({
    consumerKey: '*****',
    consumerSecret: '*****',
    callbackURL: "http://blabla/callback"
  function(token, tokenSecret, profile, done) {
    done(null, profile)

I want to be able to configure this values: (consumerKey, consumerSecret, callbackURL) on runtime, based on the logged user. That is, each user will have their on Twitter app that they need to register with Twitter.

Any advice?

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.