localgreenchain/pages
Claude 39b6081baa
Implement comprehensive authentication system (Agent 1)
Add complete user authentication with NextAuth.js supporting:
- Email/password credentials authentication
- OAuth providers (GitHub, Google) with optional configuration
- JWT-based session management with 30-day expiry
- Role-based access control (USER, GROWER, FARM_MANAGER, ADMIN)
- Permission system with granular access control
- Secure password hashing with bcrypt (12 rounds)
- Rate limiting on auth endpoints
- Password reset flow with secure tokens
- Email verification system

Files added:
- lib/auth/: Core auth library (types, permissions, context, hooks, middleware)
- pages/api/auth/: Auth API routes (NextAuth, register, forgot-password, verify-email)
- pages/auth/: Auth pages (signin, signup, forgot-password, reset-password, verify-email)
- components/auth/: Reusable auth components (LoginForm, RegisterForm, AuthGuard, etc.)

Updated _app.tsx to include SessionProvider for auth state management.
2025-11-23 03:52:09 +00:00
..
api Implement comprehensive authentication system (Agent 1) 2025-11-23 03:52:09 +00:00
auth Implement comprehensive authentication system (Agent 1) 2025-11-23 03:52:09 +00:00
blog/page Initial commit 2023-08-09 21:34:23 +00:00
plants Add environmental tracking UI components and integrations 2025-11-16 16:58:53 +00:00
vertical-farm Add vertical farming UI components and pages 2025-11-22 18:35:57 +00:00
[[...slug]].tsx Initial commit 2023-08-09 21:34:23 +00:00
_app.tsx Implement comprehensive authentication system (Agent 1) 2025-11-23 03:52:09 +00:00
_document.tsx Initial commit 2023-08-09 21:34:23 +00:00
index.tsx Implement LocalGreenChain: Plant Cloning Blockchain System 2025-11-16 05:11:55 +00:00
transparency.tsx Add comprehensive transparency system for LocalGreenChain 2025-11-23 03:29:56 +00:00