src/service/utils/authAction.ts
Function authorizeAction
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function authorizeAction(action: Action): Action {
const {
payload: { type },
response: { status } = {},
meta: { ident } = {},
Avoid too many return
statements within this function. Open
Open
return authorizeByRoleOrIdent(access, ident)