All challenges
Multiple ChoiceIntermediate 30s

Auth middleware

Choose the best answer for: protecting routes
Options
  1. 1No middleware: requests are trusted and reach protected routes
  2. 2Only on the frontend: hiding links protects backend routes
  3. 3Auth in every handler: each route re-implements its own check
  4. 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.

Play this in a 3-minute battle