server/routes/api.js
Function addExtraUserInfo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)) {