/auth/resetpassword
Description:
The /auth/resetpassword endpoint allows users to reset their password by providing a verification code along with the new password. The verification code is typically sent to the userās email after initiating the password reset process.
Method:
PATCH
Query Parameter:
Parameter | Type | Description |
---|---|---|
code | string | The verification code sent to the userās email. |
Request Payload:
Parameter | Type | Description |
---|---|---|
string | The email address of the user. | |
new_password | string | The new password to be set. |
Request Example:
Requires bearer token from response in /forgotpassword
request
See example of the responses below
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The verification code sent to the user's email
Success - If Logged In
The response is of type object
.