auth0-extensions/auth0-delegated-administration-extension

View on GitHub
server/routes/api.js

Summary

Maintainability
A
1 hr
Test Coverage

Function addExtraUserInfo has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const addExtraUserInfo = (token, user) => {
    global.daeUser = global.daeUser || {};
    global.daeUser[user.sub] = global.daeUser[user.sub] || { exp: 0, token: '' };

    if (_.isFunction(global.daeUser[user.sub].then)) {
Severity: Minor
Found in server/routes/api.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status