marusoft/Auto-Mart

View on GitHub
server/middlewares/authUser.js

Summary

Maintainability
A
1 hr
Test Coverage

Function verifyAdmin has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static verifyAdmin(req, res, next) {
    const payload = UserAuthentication.verifyAuthHeader(req);

    let error;
    let status;
Severity: Minor
Found in server/middlewares/authUser.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status