I\'m trying to figure out an appropriate way of doing authentication, which I know is a touchy subject on the GitHub issue page.
My authentication is simple. I store a
There is no middleware for no API routes in NextJS, but there are HOCs, which you can use to connect to db - select the user, etc: https://hoangvvo.com/blog/nextjs-middleware
middleware
NextJS