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
- token - Email reset token sent to user
- password - new password, min 8 chars
- passwordConfirm - password password, min 8 chars
Request
POST
http://localhost:5501/api/v1/auth/resetpass
Response
{
"status": "String",
"token": "String"
}
Response Validation
- status - request status
- 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
- token - SMS reset code sent to user
- password - new password, min 8 chars
- passwordConfirm - password password, min 8 chars
Request
POST
http://localhost:5501/api/v1/auth/resetpass/mobile
Response
{
"status": "String",
"token": "String"
}
Response Validation
- status - request status
- 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"
}