Attempt to fix undefined "user"

This commit is contained in:
3wc
2024-10-30 22:29:11 -04:00
parent f9538b8a96
commit ab8bf124a1

View File

@ -226,10 +226,9 @@ module.exports = exports = (log, loga, argv) ->
displayName: extractUserInfo(argv.oauth2_DisplayNameField, 'params.user_id')
}
}
cb(null, user)))
catch e
console.error('*** Error extracting user info:', e)
console.log user.oauth2
cb(null, user)))
# Github Strategy
if argv.github_clientID? and argv.github_clientSecret?