UNPKG

better-auth-cloudflare

Version:

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

14 lines (13 loc) 906 B
import 'zod'; export { CloudflareGeolocation, CloudflarePluginOptions, CloudflareSession, CloudflareSessionResponse, DrizzleConfig, FileMetadata, FileMetadataWithAdditionalFields, InferR2Config, R2Bucket, R2Config, WithCloudflareOptions, createR2Config } from './types.cjs'; import 'better-auth'; import '@cloudflare/workers-types'; export { S as SessionWithGeolocation, c as cloudflare, cloudflareClient, a as createKVStorage, w as withCloudflare } from './client.cjs'; export { schema } from './schema.cjs'; export { R2_ERROR_CODES, ValidationResult, createFileMetadataSchema, createFileValidator, createR2Endpoints, createR2Storage, createUploadFileSchema, error, fileIdSchema, listFilesSchema, success } from './r2.cjs'; import 'better-auth/adapters/drizzle'; import 'better-auth/db'; import 'drizzle-orm/d1'; import 'drizzle-orm/mysql2'; import 'drizzle-orm/postgres-js'; import 'better-auth/client';