Implement JWT-based authentication to protect book endpoints.
User Story
Given a user
When they log in
Then they receive a token to access protected routes
Endpoints
POST /auth/register
POST /auth/login
Tasks
Acceptance Criteria
Testing Steps
Definition of Done
Implement JWT-based authentication to protect book endpoints.
User Story
Given a user
When they log in
Then they receive a token to access protected routes
Endpoints
Tasks
Create user model/table
Implement registration endpoint:
Implement login endpoint:
Create auth middleware:
Protect routes:
Add Swagger documentation
Acceptance Criteria
401 UnauthorizedTesting Steps
401Definition of Done