Showing 1 of 1 total issue
Function loginHandler
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loginHandler (provider) {
return function (req, res) {
passport.authenticate(provider)(req, res, function (profile) {
if (profile.provider === 'Wordpress') profile.id = profile._json.ID;
var user = encodeURIComponent(profile.provider + '_' + profile.id);