Next.js Discord

Discord Forum

how to use next auth middleware to protect routes

Unanswered
English Lop posted this in #help-forum
Open in Discord
English LopOP
I want to leverage next auth middleware to require being logged in to access certain route handlers of a certain path but I also want it to protect another path but only allow certain email addresses to be authorized

0 Replies