fossasia/loklak_webclient

View on GitHub
oauth-proxy/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function customHandler has 42 lines of code (exceeds 25 allowed). Consider refactoring.
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 &&
Severity: Minor
Found in oauth-proxy/index.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

        if (req.oauthshim &&
                req.oauthshim.redirect &&
                req.oauthshim.data &&
                req.oauthshim.data.access_token &&
                req.oauthshim.options &&
    Severity: Major
    Found in oauth-proxy/index.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status