Asymmetrik/ngx-starter

View on GitHub
src/app/core/auth/auth.guard.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function authGuard has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function authGuard(configOrRoles?: string | string[] | Partial<AuthGuardConfig>) {
    return (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {
        // eslint-disable-next-line deprecation/deprecation
        const router = inject(Router);
        const sessionService = inject(SessionService);
Severity: Minor
Found in src/app/core/auth/auth.guard.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status