oauth-proxy/index.js
Function customHandler
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function customHandler(req, res, next) {
// Check that this is a login redirect with an access_token (not a RESTful API call via proxy)
if (req.oauthshim &&
req.oauthshim.redirect &&
Consider simplifying this complex logical expression. Open
Open
if (req.oauthshim &&
req.oauthshim.redirect &&
req.oauthshim.data &&
req.oauthshim.data.access_token &&
req.oauthshim.options &&