localgreenchain/components
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
..
analytics Add UI components for transport tracking, demand visualization, and analytics 2025-11-22 18:34:51 +00:00
auth Implement comprehensive authentication system (Agent 1) 2025-11-23 03:52:09 +00:00
demand Add UI components for transport tracking, demand visualization, and analytics 2025-11-22 18:34:51 +00:00
transport Add UI components for transport tracking, demand visualization, and analytics 2025-11-22 18:34:51 +00:00
vertical-farm Add vertical farming UI components and pages 2025-11-22 18:35:57 +00:00
EnvironmentalDisplay.tsx Add environmental tracking UI components and integrations 2025-11-16 16:58:53 +00:00
EnvironmentalForm.tsx Add environmental tracking UI components and integrations 2025-11-16 16:58:53 +00:00
footer.tsx Initial commit 2023-08-09 21:34:23 +00:00
form-item.tsx Initial commit 2023-08-09 21:34:23 +00:00
formatted-text.tsx Initial commit 2023-08-09 21:34:23 +00:00
layout.tsx Initial commit 2023-08-09 21:34:23 +00:00
link.tsx Initial commit 2023-08-09 21:34:23 +00:00
links.tsx Initial commit 2023-08-09 21:34:23 +00:00
locale-switcher.tsx Initial commit 2023-08-09 21:34:23 +00:00
media--image.tsx Initial commit 2023-08-09 21:34:23 +00:00
media.tsx Initial commit 2023-08-09 21:34:23 +00:00
meta.tsx Initial commit 2023-08-09 21:34:23 +00:00
navbar.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--article.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--landing-page.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--page.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--property.tsx Initial commit 2023-08-09 21:34:23 +00:00
node.tsx Initial commit 2023-08-09 21:34:23 +00:00
pager.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--cards.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--faq.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--feature.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--hero.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--view.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph.tsx Initial commit 2023-08-09 21:34:23 +00:00
PrivacySettings.tsx Add Tor integration and privacy features for anonymous plant sharing 2025-11-16 12:32:59 +00:00
section-header.tsx Initial commit 2023-08-09 21:34:23 +00:00
section.tsx Initial commit 2023-08-09 21:34:23 +00:00
view--properties_listing.tsx Initial commit 2023-08-09 21:34:23 +00:00