SDN302_-_PE_-_SU_2025_-_Block_1_3971.webp
lanhong87

SDN302_-_PE_-_SU_2025_-_Block_1_3971.webp

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
Chưa có bình luận nào.

Thông tin

Category
SDN302
Thêm bởi
lanhong87
Ngày thêm
Lượt xem
1,058
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom