Reset Password
The Reset Password endpoint allows you to reset your password using a verification code.
POST /api/auth/reset-passwordRequest Body
{
"email": "user@example.com",
"code": "123456",
"newPassword": "newpassword123"
}| Property | Type | Required | Description |
|---|---|---|---|
email | string | yes | The email address of the user. |
code | string | yes | The verification code sent to the email address. |
newPassword | string | yes | The new password for the user. |
Response
{
"data": [],
"timestamp": 1234567890,
"code": 200,
"status": "OK",
"meta": {}
}If the endpoint success, it will reset the password for the user. then send him an email to confirm the password reset.