Question · Next.js course · Module 7: Authentication and Authorization
Route Protection Before Rendering
Which mechanism lets you protect routes before the page is rendered?
Answer options
- Proxy (the proxy.ts file, middleware.ts before Next.js 16)
- bcrypt
- localStorage
- CSS Modules
You can check the correct answer by solving this task in the CodeWorlds game.