better-auth
Version:
The most comprehensive authentication framework for TypeScript.
34 lines (32 loc) • 1.01 kB
text/typescript
import * as _better_auth_core1 from "@better-auth/core";
import * as better_call146 from "better-call";
//#region src/integrations/tanstack-start-solid.d.ts
/**
* TanStack Start cookie plugin for Solid.js.
*
* This plugin automatically handles cookie setting for TanStack Start with Solid.js.
* It uses `@tanstack/solid-start-server` to set cookies.
*
* For React, use `better-auth/tanstack-start` instead.
*
* @example
* ```ts
* import { tanstackStartCookies } from "better-auth/tanstack-start/solid";
*
* const auth = betterAuth({
* plugins: [tanstackStartCookies()],
* });
* ```
*/
declare const tanstackStartCookies: () => {
id: "tanstack-start-cookies-solid";
hooks: {
after: {
matcher(ctx: _better_auth_core1.HookEndpointContext): true;
handler: (inputContext: better_call146.MiddlewareInputContext<better_call146.MiddlewareOptions>) => Promise<void>;
}[];
};
};
//#endregion
export { tanstackStartCookies };
//# sourceMappingURL=tanstack-start-solid.d.mts.map