Skip to content Skip to sidebar Skip to footer

How To Use Two Separate Passport Instances In A Single Express Server File

I have an express app with a user and admin section. Both will run on different ports and need different authentication. I created an app.js where I include passport and create an

Solution 1:

Have not tried but you can look for passports

var Passport = require('passport').Passport,
    appPass = new Passport(),
    adminappPass = new Passport();

Post a Comment for "How To Use Two Separate Passport Instances In A Single Express Server File"