denali-js/denali-auth

View on GitHub
lib/facets/authenticatable.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function authenticate has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static async authenticate(action: Action, params: any, allowedStrategies: string[] | string) {
      let failureReason: Error;
      let attemptNextStrategy = async (strategies: AuthStrategy[]): Promise<Model> => {
        let currentStrategy = strategies.shift();
        if (!currentStrategy) {
Severity: Minor
Found in lib/facets/authenticatable.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status