CREATED: 08-03-2025
LAST MODIFIED: : 13-04-2025
BASE_URL = /api/auth
| Code | HTTP Status | Description |
|---|---|---|
VALIDATION_ERROR |
400 | Input validation failed |
INVALID_CREDENTIALS |
401 | Invalid email/password combination |
UNAUTHORIZED_ERROR |
401 | Missing / Invalid Token |
ACCESS_TOKEN_EXPIRED |
401 | Access token expired |
REFRESH_TOKEN_EXPIRED |
403 | Refresh token expired |
NOT_FOUND |
404 | Could Not Find User with given details |
EXPIRED_LINK |
410 | Link has been expired |
INTERNAL_SERVER_ERROR |
500 | Internal Server Error |
1. Register UserPOST /register{
"fname":string; // 2-15 characters (alphabets only)
"lname":string; // 2-15 characters (alphabets only)
"email": string; // Valid email format
"username": string; // 3-20 characters
"password": string; // 8+ chars, alteast 1 number, atleast 1 alphabet
}
201 Created