blueskyOriginal post
Rank 3: Container
Anyone have use case to implement middleware to protect dashboard & login page?
I try to implement middleware on nextjs with api to check current session, but it's not gonna work.
Summary
A user is asking for help with implementing middleware on Next.js. They shared a repo for server side rendering (SSR) and mentioned a potential issue with cookies. Another user suggests sticking with client side code instead of SSR. The first user then asks for examples of implementing middleware to protect dashboard and login pages. They mention trying to implement middleware with an API but it is not working. No solution is provided in the thread.