/opt/canhelp/node_modules/better-auth/dist/api/routes
Edit: /opt/canhelp/node_modules/better-auth/dist/api/routes/update-session.d.mts (1991B)
import { AdditionalSessionFieldsInput } from "../../types/models.mjs";
import { BetterAuthOptions } from "@better-auth/core";
import * as better_call0 from "better-call";
import * as z from "zod";
//#region src/api/routes/update-session.d.ts
declare const updateSession:
() => better_call0.StrictEndpoint<"/update-session", {
method: "POST";
operationId: string;
body: z.ZodRecord;
use: ((inputContext: better_call0.MiddlewareInputContext) => Promise<{
session: {
session: Record & {
id: string;
createdAt: Date;
updatedAt: Date;
userId: string;
expiresAt: Date;
token: string;
ipAddress?: string | null | undefined;
userAgent?: string | null | undefined;
};
user: Record & {
id: string;
createdAt: Date;
updatedAt: Date;
email: string;
emailVerified: boolean;
name: string;
image?: string | null | undefined;
};
};
}>)[];
metadata: {
$Infer: {
body: Partial>;
};
openapi: {
operationId: string;
description: string;
responses: {
"200": {
description: string;
content: {
"application/json": {
schema: {
type: "object";
properties: {
session: {
type: string;
$ref: string;
};
};
};
};
};
};
};
};
};
}, {
session: {
id: string;
createdAt: Date;
updatedAt: Date;
userId: string;
expiresAt: Date;
token: string;
ipAddress?: string | null | undefined;
userAgent?: string | null | undefined;
};
}>;
//#endregion
export { updateSession };
//# sourceMappingURL=update-session.d.mts.map