Skip to main content
POST
Change Password
Allows an authenticated user to change their password by verifying the current password and setting a new one.

Body Parameters

password
string
required
The user’s current password for verification
newPassword
string
required
The new password to set (will be securely hashed)

Response

success
boolean
Indicates whether the password was changed successfully
message
string
Confirmation message

Error Responses


Notes

  • Only users authenticated via email and password can change their password.
  • The current password must be correct.
  • New password is hashed and stored securely.