raveljs/ravel

View on GitHub
lib/auth/authenticate_request.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function middleware has 41 lines of code (exceeds 30 allowed). Consider refactoring.
Open

  middleware () {
    const self = this;
    return async function (ctx, next) {
      let promise;
      if (ctx.headers['x-auth-token'] && ctx.headers['x-auth-client']) {
Severity: Minor
Found in lib/auth/authenticate_request.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status