Kizspy.me

Input: { "email": "...", "password": "..." }.
Data for testing: {"email": "
[email protected]", "password": "password123"}
• Output: {"token": "..."}
о If invalid email or password, returns message: "Invalid credentials"
• Note: Use JWT_SECRET from .env and token should expire in 1h.
Protected API:
• Method: GET
•
URI:
http://localhost:9999/api/users/profile
• Header: Authorization: Bearer <token>
•
Output: Returns the user's profile if the token is valid
----END---
Zoom
+ 100%
Summer 2025
Close