feat: integrate NextAuth for authentication, refactor login and registration processes, and enhance middleware for session management

This commit is contained in:
Julien Froidefond
2025-10-16 15:50:37 +02:00
parent 9ecdd72804
commit 7426bfb33c
33 changed files with 417 additions and 729 deletions

View File

@@ -17,9 +17,9 @@
"@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-slot": "1.0.2",
"@radix-ui/react-toast": "1.1.5",
"@types/bcrypt": "^5.0.2",
"@types/bcryptjs": "^3.0.0",
"@types/mongoose": "5.11.97",
"bcrypt": "^5.1.1",
"bcryptjs": "^3.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^10.18.0",
@@ -28,7 +28,7 @@
"lucide-react": "^0.487.0",
"mongoose": "8.1.0",
"next": "15.2.0",
"next-auth": "4.24.5",
"next-auth": "5.0.0-beta.29",
"next-themes": "0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",