☑Kizspy.me
• Login
○ Endpoint: POST/api/users/login
• Processing Requirements:
" Validate credentials.
"
If successful, return a signed JWT token with { id: user._id} as
payload.
• Request Example:
{
"email": "
[email protected]",
"password": "strongpass123"
o Response Example:
{
}
"token": "eyJhbGci0iJIUZI1NiIsInR5CCI6..."
Question 4 (2.5 points) - Borrow a Book (Requires JWT)
Zoom
+ 100%
Close