UNPKG

better-auth-cloudflare

Version:

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

19 lines (16 loc) 554 B
import { AuthPluginSchema } from 'better-auth'; import { CloudflarePluginOptions } from './types.cjs'; import '@cloudflare/workers-types'; import 'better-auth/adapters/drizzle'; import 'better-auth/db'; import 'drizzle-orm/d1'; import 'drizzle-orm/mysql2'; import 'drizzle-orm/postgres-js'; /** * Generates database schema for Cloudflare plugin * * @param options - Plugin configuration * @returns Schema with geolocation fields and file tracking */ declare const schema: (options: CloudflarePluginOptions) => AuthPluginSchema; export { schema };