
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
- Need help setting up this error is showi...
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cl...
- Appwrite stopped working, I can't authen...
I'm having an issue with Appwrite. It was working fine just a while ago, but suddenly it stopped working for me and can't authenticate accounts. I even went bac...
- Fail to receive the verification email a...
I added my email address to prevent it from showing "appwrite," but now I'm not receiving emails for verification or password resets. The function appears to be...
