helpyourneighbour/backend/src
BibaBot Jarvis 437bb1d504
Some checks are pending
Docker Test / test (push) Waiting to run
feat: add role-based access control middleware and auth routes
This commit implements the role-based access control as per the project's security requirements. It includes:
- A new middleware 'requireRole' that checks user roles for protected endpoints
- Updated auth routes with role protection
- Auth controller with proper registration and login logic including JWT token generation
- Default user role assignment during registration
2026-03-15 19:06:53 +00:00
..
__tests__ test: add rate limiting tests for auth endpoints 2026-03-07 04:21:48 +00:00
controllers feat: add role-based access control middleware and auth routes 2026-03-15 19:06:53 +00:00
db fix(#14): Implement database migrations system with baseline migration 2026-03-06 23:37:39 +00:00
middleware feat: add role-based access control middleware and auth routes 2026-03-15 19:06:53 +00:00
routes feat: add role-based access control middleware and auth routes 2026-03-15 19:06:53 +00:00
services Initial commit 2026-03-05 21:45:34 +00:00
utils fix(#27): Implement uniform error handling with standardized format 2026-03-07 00:17:34 +00:00
server.js fix(#85): Run expanded local discovery and continue with next actionable task 2026-03-12 17:41:37 +00:00