feat(app): added better auth for better auth stuff vs my home written broken one

This commit is contained in:
2025-09-18 21:46:01 -05:00
parent 21608b0171
commit caf2315191
16 changed files with 648 additions and 25 deletions

View File

@@ -8,8 +8,8 @@
"dev:app": "dotenvx run -f .env -- tsx watch app/main.ts",
"dev:docs": "npm run translateDocs && cd lstDocs && npm start",
"dev:front": "cd frontend && npm run dev",
"dev:db:migrate": "npx drizzle-kit push --config=drizzle-dev.config.ts",
"dev:db:generate": "npx drizzle-kit generate --config=drizzle-dev.config.ts",
"dev:db:migrate": "npx drizzle-kit push",
"dev:db:generate": "tsc && npx drizzle-kit generate --config=drizzle-dev.config.ts",
"dev": "concurrently -n \"server,frontend,docs\" -c \"#007755,#2f6da3,#DB4FE0\" \"npm run dev:app\" \"npm run dev:front\" \"npm run dev:docs\"",
"copy:docs": "node scripts/lstDocCopy.mjs",
"build:app": "rimraf dist && npx tsc",
@@ -29,7 +29,8 @@
"deploy": "standard-version --conventional-commits && npm run translateDocs && npm run build",
"db:migrate": "npx drizzle-kit push",
"db:generate": "npx drizzle-kit generate",
"translateDocs": "cd scripts && node translateScript.js"
"translateDocs": "cd scripts && node translateScript.js",
"auth:generate": "npx @better-auth/cli generate --config ./app/src/pkg/auth/auth.ts"
},
"repository": {
"type": "git",
@@ -41,6 +42,9 @@
"type": "module",
"dependencies": {
"@dotenvx/dotenvx": "^1.49.0",
"@types/cors": "^2.8.19",
"better-auth": "^1.3.9",
"cors": "^2.8.5",
"drizzle-kit": "^0.31.4",
"drizzle-orm": "^0.44.5",
"drizzle-zod": "^0.8.3",