| 1 | What is the difference between authentication and authorization in a Next.js application? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Beginner |
| 2 | What are best practices for securely storing and validating authentication tokens in a Next.js app? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Advanced |
| 3 | How can you use middleware to protect multiple routes at once for authentication? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Intermediate |
| 4 | How do you implement role based authorization, where different users see different content based on their role? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Advanced |
| 5 | How would you protect a page in the App Router so only logged in users can access it? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Intermediate |
| 6 | How do you read cookies in a Next.js server component? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Beginner |
| 7 | How do you set a cookie in Next.js, such as after a user logs in? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Intermediate |
| 8 | How would you implement a simple session management system using cookies in Next.js? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Intermediate |
| 9 | What security settings should always be applied to cookies that store session or authentication information? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Advanced |
| 10 | How do you programmatically navigate to a different page in response to a user action, such as after a successful form submission? Next.js › Routing (App/Pages Router) | Next.js | Routing (App/Pages Router) | Intermediate |
| 11 | How would you conditionally redirect users based on something dynamic, like whether they are logged in, rather than a fixed rule in next.config.js? Next.js › Redirects & Rewrites Configuration | Next.js | Redirects & Rewrites Configuration | Intermediate |
| 12 | What security considerations are unique to server actions compared to regular server side code, since they can be called directly from the browser? Next.js › Server Actions & Mutations | Next.js | Server Actions & Mutations | Advanced |
| 13 | How do you limit which routes your middleware actually applies to? Next.js › Middleware | Next.js | Middleware | Beginner |
| 14 | How can you protect an API route so that only authenticated users can access it? Next.js › API Routes | Next.js | API Routes | Intermediate |
| 15 | How do you secure the route that enables Draft Mode so random visitors cannot use it? Next.js › Draft Mode & Preview Mode | Next.js | Draft Mode & Preview Mode | Intermediate |