RouteInjector/route-injector

View on GitHub
lib/app/internals/auth/PassportLocal.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function PassportLocal has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var PassportLocal = /** @class */ (function () {
    //TODO: Use IAuthConfig when defining strategies on a next steps of this refactor
    function PassportLocal(config) {
        var _this = this;
        this.tokens = require('../../../engine/routeinjector/routes/auth/tokens');
Severity: Major
Found in lib/app/internals/auth/PassportLocal.js - About 3 hrs to fix

    Function PassportLocal has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function PassportLocal(config) {
            var _this = this;
            this.tokens = require('../../../engine/routeinjector/routes/auth/tokens');
            var jwt = require('jsonwebtoken');
            var BearerStrategy = require('passport-http-bearer');
    Severity: Minor
    Found in lib/app/internals/auth/PassportLocal.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status