app/helpers/passport/user.js
Function lookupByPassport
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.lookupByPassport = function (authType, profile, callback) {
var typeData = strategies[authType]
, key = String(profile[typeData.keyField]) // Important, want to use strings, not nums
, passport;