Multiple ChoiceIntermediate 30s
Auth middleware
Choose the best answer for: protecting routes
Options
- 1No middleware: requests are trusted and reach protected routes
- 2Only on the frontend: hiding links protects backend routes
- 3Auth in every handler: each route re-implements its own check
- 4Middleware checks auth before allowing access to protected routes
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.