src/app/core/auth/auth.guard.ts
Function authGuard
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);