I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1
I tried to replicate it for Tanstack Start.
However, once setting the session, e.g. through the oauth callback, the getLoggedInUser returns null
A harde browser refresh is necessary in order to work.
I do not understand why this is happening or what I am doing wrong.
Here is the code: https://gist.github.com/Olgoetz/a685d61c130e87b8817cb780e46888a3
SSR Auth with Tanstack Start requires hard refresh
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...