I am following this tutorial https://appwrite.io/docs/tutorials/nextjs-ssr-auth, everything works fine when used appwrite cloud but when switched to the selfhosted version the session isnt being created. Atleast that's what I think. I've exposed the selfhosted instance using cloudflare tunnels. What could be the problem?