useSession doesn't get session in TanStack Start
I have a TanStack Start SPA web app connected to a separate backend. I have enabled:
And on my signin page
on the route of the signedin:
I can see in Chrome devtool, if I see my cookies, that a valid cookie is set under
better-auth.session_token
, but if I refresh the page after signing in, it gives me null in the getSession
, and I am signed out. Did I miss a step?2 Replies