UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

74 lines (73 loc) 2.01 kB
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: <O extends BetterAuthOptions>() => _$better_call0.StrictEndpoint<"/update-session", { method: "POST"; operationId: string; body: z.ZodRecord<z.ZodString, z.ZodAny>; use: _$better_call0.Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{ session: { session: Record<string, any> & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record<string, any> & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>>[]; metadata: { $Infer: { body: Partial<AdditionalSessionFieldsInput<O>>; }; 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 };