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.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server