Need to protect certain routes in Next.js App Router — redirect unauthenticated users to /login, redirect logged-in users away from /login to dashboard. Doing this in each page component leads to flas...
authentication
1 trace related to authentication in the CommonTrace repository.