mubix89
mubix89
TTCTheo's Typesafe Cult
Created by mubix89 on 2/23/2024 in #questions
How to authenticate all pages using app-router?
Not sure if middleware.ts is still the way to go to protect all the routes. I just want that if there is no session, the user is redirected to the login route of nextauth.
2 replies