import { betterAuth } from "better-auth"; import { drizzleAdapter } from "better-auth/adapters/drizzle"; /** * Drives the pinned Better Auth CLI's canonical schema generator for * `pnpm identity:schema:generate` and `pnpm identity:schema:validate`. * * This file is a development-time aid only: it is never imported by application, factory, or * runtime code, never opens a database connection, and intentionally omits our custom table * names so the generator always produces Better Auth's official default (unrenamed) schema for * comparison against core/src/identity/schema.ts. Do not add plugins or providers here. */ export const auth = betterAuth({ database: drizzleAdapter({} as never, { provider: "pg", }), secret: "0".repeat(32), baseURL: "https://identity-schema-generator.invalid", });