UNPKG

@zpg6-test-pkgs/better-auth

Version:

The most comprehensive authentication library for TypeScript.

40 lines (36 loc) 1.21 kB
import { Kysely } from 'kysely'; import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.eDxSywzK.mjs'; import 'better-call'; import 'zod/v4'; import '../../shared/better-auth.DTtXpZYr.mjs'; import '../../shared/better-auth.B_ZH8D8u.mjs'; import 'jose'; import 'zod/v4/core'; import 'zod'; import 'better-sqlite3'; import 'bun:sqlite'; declare function getKyselyDatabaseType(db: BetterAuthOptions["database"]): KyselyDatabaseType | null; declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{ kysely: Kysely<any> | null; databaseType: KyselyDatabaseType | null; }>; interface KyselyAdapterConfig { /** * Database type. */ type?: KyselyDatabaseType; /** * Enable debug logs for the adapter * * @default false */ debugLogs?: AdapterDebugLogs; /** * Use plural for table names. * * @default false */ usePlural?: boolean; } declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConfig) => (options: BetterAuthOptions) => Adapter; export { KyselyDatabaseType, createKyselyAdapter, getKyselyDatabaseType, kyselyAdapter };