UNPKG

better-auth-cloudflare

Version:

Seamlessly integrate better-auth with Cloudflare Workers, D1, Hyperdrive, KV, R2, and geolocation services.

25 lines (24 loc) 744 B
import type { cloudflare } from "."; /** * Cloudflare client plugin for Better Auth */ export declare const cloudflareClient: () => { id: "cloudflare"; $InferServerPlugin: ReturnType<typeof cloudflare>; getActions: ($fetch: import("@better-fetch/fetch").BetterFetch) => { /** * Upload a file by sending it directly as the request body with metadata in headers. */ uploadFile: (file: File, metadata?: Record<string, any>) => Promise<{ data: unknown; error: null; } | { data: null; error: { message?: string | undefined; status: number; statusText: string; }; }>; }; };