Coding task · Next.js course · Module 7: Authentication and Authorization

Practice: Create middleware.ts protecting specific routes and

Create middleware auth protection

Task

Create middleware.ts that protects specific routes and redirects unauthorized users