Next.js Discord

Discord Forum

x

Answered
Giant wood wasp posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by Marchy
I would use something more tailored to Next, like next-auth.
View full answer

5 Replies

Avatar
I would use something more tailored to Next, like next-auth.
Answer
Avatar
Like you said, passport was designed for express. It’s really just cookie middleware.
Avatar
Citrus blackfly parasitoid
I've decided to switch to using pages instead of the App Router because I've been facing challenges while working with middlewares in the App Router. Despite searching extensively, I couldn't find any relevant documentation, support on Stack Overflow, Reddit, or other platforms for assistance with this API. Even ChatGPT couldn't provide the necessary help. I've reached a point of frustration, and I'm now downgrading from the App Router to Pages.
Avatar
You can still use pages in 13 if you want (it's still getting updates). You just won't get some of the benefits of the app dir.
Avatar
It’s planned to get updates and bug fixes, but it won’t have the features of react* 18