☑Kizspy.me
{
}
"_id": "6621bbaabbccdd1234567890",
"title": "Refactoring (2nd Edition)",
"author": "66211aaa12bcab1234567788",
"genres":["66211aaa12bcab1234567711", "66211aaa12bcab1234567722"],
"publishedYear": 2019,
"availableCopies": 6
Question 3 (2 points) - Register & Login a New User
Objective:
Implement both user registration and login functionality. Passwords must be hashed
before storage. JWT authentication must be used.

Register
。 Endpoint: POST /api/users/register
o Processing Requirements:
"
Validate that email is unique.
Hash password using bcrypt.
o Request Example:
Zoom
- FUO
+ 100%
Close