UNPKG

better-auth

Version:

The most comprehensive authentication library for TypeScript.

28 lines (25 loc) 883 B
import * as better_call from 'better-call'; import { H as HookEndpointContext } from '../shared/better-auth.Bs_C2zap.mjs'; import '../shared/better-auth.Bi8FQwDD.mjs'; import 'zod'; import '../shared/better-auth.DNEJbRnE.mjs'; import 'jose'; import 'kysely'; import 'better-sqlite3'; import 'bun:sqlite'; declare function toNextJsHandler(auth: { handler: (request: Request) => Promise<Response>; } | ((request: Request) => Promise<Response>)): { GET: (request: Request) => Promise<Response>; POST: (request: Request) => Promise<Response>; }; declare const nextCookies: () => { id: "next-cookies"; hooks: { after: { matcher(ctx: HookEndpointContext): true; handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>; }[]; }; }; export { nextCookies, toNextJsHandler };