core/api/authentication.js

Summary

Maintainability
A
3 hrs
Test Coverage
C
71%

Showing 1 of 1 total issue

Function auth has a Cognitive Complexity of 37 (exceeds 20 allowed). Consider refactoring.
Open

export default function auth (app) {
const config = app.get('authentication')
if (!config) return
// Having undefined providers causes an issue in feathers but we'd like to be able
// to set providers undefined in config file based on some conditions (eg env vars)
Severity: Minor
Found in core/api/authentication.js - About 3 hrs to fix

There are no issues that match your filters.

Category
Status