XM

Verify Reset Token

Path:

GET /auth/token/{resetToken}

This endpoint is triggered for security purposes, to ensure the password reset token is correct.

Headers

Content-Type : application/json

x-api-key : d41d8cd98f00b204e9800998ecf8427e

Consumes

  • application/json

Produces

  • application/json

Parameters

Type: Path

Name: Reset Token ID

Required: true

Sample Request

Path

https://{baseurl}/auth/token/5e97e4d13cb8553c0e43d88a

Response

HTTP Code : 200 Message : OK

Description: You will see this message when the reset token is valid.

Sample

{
"tokenValid": true,
"userId": "5e97947d3cb8553c0e43d87f"
}

HTTP Code : 404 Message : Not Found

Description: You'll see this message when the reset token is incorrect or has expired.

Sample

{
"code": "VERIFY_TOKEN_FAILED",
"message": "Token not found."
}

Changelog

Last updated - July 2020