denali-js/denali-auth

View on GitHub
lib/facets/oauthable.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function authenticateRequest has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static authenticateRequest(action: Action, params: any, User: Model) {
      debug(`[${ action.request.id }]: attempting to authenticate`);
      if (!params.provider) {
        throw new Errors.BadRequest(`No OAuth provider was specified, unable to attempt OAuth login`);
      }
Severity: Minor
Found in lib/facets/oauthable.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status