
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.

Server side rendering is a huge pain. I highly recommend sticking with client side code if possible

You can check this repo for SSR: https://github.com/Meldiron/appwrite-ssr-next-js
But keep in mind the cookie explanation, as you won't be able to get the appwrite cookie in your middleware if that isn't solved
Recommended threads
- Trying to connect platform
I'm stuck here for about 1 day how can I connect my platform i am trying to connect localhost in react
- Login without email or phone number
I'm making a web app targeted towards users who are very tech illiterate, so a lot of them won't even have emails. I know that the only two "identifiers" for a...
- Password Recovery link takes upwards of ...
Hello. I am having this issue above. Is there a way to make this faster? I created this project a while back when appwrite only supported Frankfurt servers. Wil...
