Kublick
Kublick
Explore posts from servers
BABetter Auth
Created by Kublick on 4/15/2025 in #help
Tanstack Start how to handle session cookie
ok solution was to get headers back....
import { getHeaders } from "@tanstack/react-start/server";
export const client = hc<ApiRoutes>(import.meta.env.VITE_CLIENT_URL, {
init: { headers: { cookie: getHeaders().cookie! } },
}).api;
import { getHeaders } from "@tanstack/react-start/server";
export const client = hc<ApiRoutes>(import.meta.env.VITE_CLIENT_URL, {
init: { headers: { cookie: getHeaders().cookie! } },
}).api;
3 replies
BABetter Auth
Created by ChowderCrab on 2/18/2025 in #help
Cookie cache does not refresh with server-side getSession call
im using hono with tanstack start, I assume the suggestion to use the client applies too ?
34 replies