☑Kizspy.me
1. Login API

URI:
http://localhost:9999/api/customers/login
Method: POST
• Input: JSON containing email and password.
Output: Returns a JWT token if credentials are valid
(payload={id:customer._id}; JWT_SECRET read from .env; expiresin: '1h')
Sample Input/Output: (Give the test data in SampleTest.json, in the given folder)
POST
http://localhost:9999/api/customers/login
Query
Headers 2 Auth Body1 Tests
Pre Run
Send
Status: 200 OK Size: 183 Bytes Time: 107 ms
JSON XML Text Form Form-encode GraphQL Binary
JSON Content
1 (
2
3
}
"email": "
[email protected]",
"password": "abc@123"
Zoom
+100%
Response Headers Cookies Results Dock
1
f
2
11 #
"token": "eyJhbGc0131Uz11NiIsInR5cC161kpXVC39
eyJpZCI6IjY3YmNhMDA4NmZhYzYjY30TE2Njcy2iIsI
m1hdCI6MT COMDUSMEMANSwiZXhwIjoxNzQwNTX20Tg1fQ
.xqr80sfDhcxMDxfe2nu7wkNisudp 3NyNH-UneV_va
Format
3
}
Close