# Node.js Middleware & Guards Section

## Middleware Configuration

This section describes the middleware and authentication guards found in the application.

### Middleware Chain

{{MIDDLEWARE_CHAIN}}

### Authentication Middleware

The following authentication patterns were detected:

{{AUTH_MIDDLEWARE}}

### Passport.js Configuration

{{PASSPORT_DETAILS}}

### NestJS Guards

For NestJS applications, the following guard patterns were found:

- **@UseGuards()** - Applies guards to routes or controllers
- **AuthGuard** - Built-in authentication guard
- **RolesGuard** - Custom role-based guard

### Route Protection

{{ROUTE_PROTECTION_DETAILS}}

### CORS Configuration

{{CORS_DETAILS}}

### Error Handling Middleware

{{ERROR_HANDLING}}
