jaumard/trailpack-passport

View on GitHub
api/controllers/AuthController.js

Summary

Maintainability
A
1 hr
Test Coverage

Function callback has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  callback(req, res) {
    this.app.services.PassportService.callback(req, res, (err, user, challenges, statuses) => {
      if (err) {
        if (err.code === 'E_USER_NOT_FOUND') {
          req.err = err
Severity: Minor
Found in api/controllers/AuthController.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status