conveyal/modeify

View on GitHub
lib/auth0.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getAccounts has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports.getAccounts = function (params, callback) {
  function getUsers () {
    fetch(`https://${process.env.AUTH0_DOMAIN}/api/v2/users?${qs.stringify(params)}`, {
      headers: {
        authorization: `Bearer ${managementAPIAccessToken}`,
Severity: Minor
Found in lib/auth0.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status