Tanstack Start how to handle session cookie
First the stack, im using Tanstack Start, Hono and Better-Auth
The issue is when I hard reload or enter the URL manually, the cookie will not be read..
If its by client navigation it works correctly...
In order to have the cookie in the authenticated route i did the following function
This way even if I hard reload or enter manually the session will be returned
This is working as intended but now when im on a nested route inside the authenticated route, the issue persist.
On server I have reactStartCoookies as suggested in the docs and last item of the array...
For data fetching im using Hono RPC
How I deal with this scenario?
1 Reply
ok solution was to get headers back....