UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

33 lines (32 loc) 1.03 kB
import * as _$_better_auth_core0 from "@better-auth/core"; import * as _$better_call0 from "better-call"; //#region src/integrations/tanstack-start.d.ts /** * TanStack Start cookie plugin for React. * * This plugin automatically handles cookie setting for TanStack Start with React. * It uses `@tanstack/react-start-server` to set cookies. * * For Solid.js, use `better-auth/tanstack-start/solid` instead. * * @example * ```ts * import { tanstackStartCookies } from "better-auth/tanstack-start"; * * const auth = betterAuth({ * plugins: [tanstackStartCookies()], * }); * ``` */ declare const tanstackStartCookies: () => { id: "tanstack-start-cookies"; version: string; hooks: { after: { matcher(ctx: _$_better_auth_core0.HookEndpointContext): true; handler: _$better_call0.Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>; }[]; }; }; //#endregion export { tanstackStartCookies };