feat: implement secure admin authentication system with JWT sessions, middleware protection, and Prisma schema initialization

This commit is contained in:
Yolando
2026-03-28 20:38:47 +07:00
parent 53da46def1
commit 0549f12a97
13 changed files with 1100 additions and 6 deletions

View File

@@ -9,15 +9,23 @@
"lint": "eslint"
},
"dependencies": {
"bcryptjs": "^3.0.3",
"framer-motion": "^12.38.0",
"jose": "^6.2.2",
"lucide-react": "^1.7.0",
"next": "^15.5.14",
"next-intl": "^4.8.3",
"next-themes": "^0.4.6",
"react": "19.2.4",
"react-dom": "19.2.4"
"react-dom": "19.2.4",
"zod": "^4.3.6"
},
"prisma": {
"seed": "tsx prisma/seed.ts"
},
"devDependencies": {
"@prisma/client": "^5.22.0",
"@types/bcryptjs": "^3.0.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
@@ -25,7 +33,9 @@
"eslint": "^9",
"eslint-config-next": "^15.5.14",
"postcss": "^8.5.0",
"prisma": "^5.22.0",
"tailwindcss": "^3.4.17",
"tsx": "^4.21.0",
"typescript": "^5"
}
}