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

Practice: Create a ProtectedRoute component using

Create a protected route

Task

Create a ProtectedRoute component using useSession to guard against unauthorized access