feat: add authentication support and user model

- Updated `env.example` to include NextAuth configuration for authentication.
- Added `next-auth` dependency to manage user sessions.
- Introduced `User` model in Prisma schema with fields for user details and password hashing.
- Integrated `AuthProvider` in layout for session management across the app.
- Enhanced `Header` component with `AuthButton` for user authentication controls.
This commit is contained in:
Julien Froidefond
2025-09-30 21:49:52 +02:00
parent 43c141d3cd
commit 17b86b6087
20 changed files with 1418 additions and 13 deletions

View File

@@ -14,6 +14,10 @@ JIRA_BASE_URL="" # https://votre-domaine.atlassian.net
JIRA_EMAIL="" # votre.email@domaine.com
JIRA_API_TOKEN="" # Token API Jira
# NextAuth (requis)
NEXTAUTH_URL="http://localhost:3000" # URL de votre application
NEXTAUTH_SECRET="your-secret-key-here" # Clé secrète pour signer les tokens
# Debug (optionnel)
VERBOSE_LOGGING="false" # Logs détaillés en développement
NODE_ENV="development" # development | production