🔐 Authentication
Change current password
The Change Password API allows logged-in users to update their current password by providing the old password as a verification step.
This API provides a secure mechanism for users to change their passwords within the application.
By accessing this endpoint and providing the old password, users can initiate the password change process and set a new password of their choice.
post/users/change-password
Request body
Example request
{
"newPassword": "test@123",
"oldPassword": "new@123"
}Response
Change current password
Example response
{
"message": "Password changed successfully",
"statusCode": 200,
"success": true
}