/opt/canhelp/node_modules/better-auth/dist/integrations
Edit: /opt/canhelp/node_modules/better-auth/dist/integrations/next-js.d.mts (1117B)
import * as _better_auth_core0 from "@better-auth/core";
import * as better_call0 from "better-call";
//#region src/integrations/next-js.d.ts
declare function toNextJsHandler(auth: {
handler: (request: Request) => Promise
;
} | ((request: Request) => Promise)): {
GET: (request: Request) => Promise;
POST: (request: Request) => Promise;
PATCH: (request: Request) => Promise;
PUT: (request: Request) => Promise;
DELETE: (request: Request) => Promise;
};
declare const nextCookies: () => {
id: "next-cookies";
hooks: {
before: {
matcher(ctx: _better_auth_core0.HookEndpointContext): boolean;
handler: (inputContext: better_call0.MiddlewareInputContext) => Promise;
}[];
after: {
matcher(ctx: _better_auth_core0.HookEndpointContext): true;
handler: (inputContext: better_call0.MiddlewareInputContext) => Promise;
}[];
};
};
//#endregion
export { nextCookies, toNextJsHandler };
//# sourceMappingURL=next-js.d.mts.map