laundree/laundree

View on GitHub
src/api/app.js

Summary

Maintainability
A
1 hr
Test Coverage

Function basic has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function basic (req, authOrSecDef, scopesOrApiKey, callback) {
  const authHeader = req.header('authorization')
  const match = authHeader && authHeader.match(/^Basic (.+)$/)
  const token = match && match[1]
  debug('Verifying token %s', token)
Severity: Minor
Found in src/api/app.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status