chore: use official better auth cli

This commit is contained in:
2026-06-10 03:30:06 -07:00
parent bf3164fb2b
commit fa43906d70
2 changed files with 912 additions and 18 deletions

View File

@@ -7,8 +7,8 @@
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"db:apply:local": "wrangler d1 migrations apply cfw-auth --local",
"db:check": "node scripts/generate-better-auth-migration.mjs --check",
"db:generate": "node scripts/generate-better-auth-migration.mjs",
"db:check": "node scripts/check-better-auth-migration.mjs",
"db:generate": "auth generate --config src/auth.migration.ts --output migrations/0001_better_auth_account_center.sql -y",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"ready": "pnpm db:check && pnpm typecheck && pnpm test"
@@ -20,6 +20,7 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260601.0",
"auth": "^1.6.16",
"typescript": "^5.8.0",
"vitest": "^3.2.0",
"wrangler": "^4.20.0"

925
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff