Cookie do not return on server (Hono)
Hi everyone,
I've been working on an experimental project that combines React Router v7 (using framework mode) with Better Auth. For the backend, I'm using Hono along with the react-router-hono-server package.
The login flow works fine, and I can successfully retrieve the user's session on a protected page via React Router. However, when I try to access the session inside a Hono middleware, it’s not available.
Am I missing something in the setup or configuration?
For context, here are the headers returned from the React Router loader compared to those in the Hono middleware:
Thanks in advance for any insights!
0 Replies