mirror of
https://github.com/moeru-ai/airi.git
synced 2026-08-14 00:48:06 +00:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
14 lines
491 B
TypeScript
14 lines
491 B
TypeScript
import process from 'node:process'
|
|
|
|
import { createAuth } from '../auth'
|
|
import { createAuthDrizzle } from '../db'
|
|
import { parseAuthEnv } from '../env'
|
|
|
|
const env = parseAuthEnv(process.env)
|
|
|
|
// NOTICE:
|
|
// `better-auth generate` only introspects the auth instance's schema — it never
|
|
// fires the email callbacks. Pass no EmailService; createAuth's email-aware
|
|
// callbacks throw if invoked, but introspection never reaches them.
|
|
export default createAuth(createAuthDrizzle(env).db, env)
|