Commit graph

1 commit

Author SHA1 Message Date
BibaBot Jarvis
437bb1d504 feat: add role-based access control middleware and auth routes
Some checks are pending
Docker Test / test (push) Waiting to run
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