Skip to Content
Reference

TanStack Start

Server sessions and hydration for TanStack Start.

import { … } from "@monarcode/session-kit/tanstack-start";

Guide: TanStack Start.

Functions

connectSession

Connects a TanStack Start router to the browser client in its context, as auth. Call it once in getRouter, after createRouter.

loadSession

Reads this request's session into the client. Call it in the root route's beforeLoad.

On this page