Skip to main content

Reset Password

Forgot password reset

Email

Intro

Get a link to reset your email. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.

Request Headers

Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>

Request body

{
"token":"String",
"password":"String",
"passwordConfirm":"String"
}

Body Validation

  1. token - Email reset token sent to user
  1. password - new password, min 8 chars
  1. passwordConfirm - password password, min 8 chars

Request

POST
http://localhost:5501/api/v1/auth/resetpass

Response

{
"status": "String",
"token": "String"
}

Response Validation

  1. status - request status
  1. token - user access token

Example

Headers

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ

Body

{
"token":"e84f2a129914c7175003e9daef935f1def51ecaaea49b9a054052a196f1e9d27",
"password":"12345678",
"passwordConfirm":"12345678"
}

Response

{
"status": "success",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Mobile

Intro

A verification sms will be sent. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.

Request Headers

Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>

Request body

{
"token":"String",
"password":"String",
"passwordConfirm":"String"
}

Body Validation

  1. token - SMS reset code sent to user
  1. password - new password, min 8 chars
  1. passwordConfirm - password password, min 8 chars

Request

POST
http://localhost:5501/api/v1/auth/resetpass/mobile

Response

{
"status": "String",
"token": "String"
}

Response Validation

  1. status - request status
  1. token - User access token

Example

Headers

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ

Body

{
"token":"119345",
"password":"12345678",
"passwordConfirm":"12345678"
}

Response

{
"status": "success",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}