lib/auth0.js
Function getAccounts
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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}`,