Showing 1 of 2 total issues
Function checkRoles
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function checkRoles<R>(
requiredRoles: [R, ...R[]] | [boolean],
role: R | R[] | undefined,
) {
// handler is allowed only for not authorized