lib/app/internals/auth/PassportLocal.js
Function PassportLocal
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Function PassportLocal
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');