v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Validate password

Validate the entered password.

post/auth/v1/mfa/password/validate

Request body

deviceIdstring required

Unique ID of the device used to validate the password. It should be the same device used to generate the token.

brandstring required

Name of the brand or organisation that needs verification.

sessionIdstring required

Unique ID created from /mfa/token/generate API.

passwordstring required

Password that needs validation.

identifierType'MOBILE' | 'EMAIL' | 'USERNAME' | 'EXTERNALID' required

Type of identifier to identify the customer.

identifierValuestring required

Value of the identifier.

Response

200

Example response

{
  "status": {
    "success": true,
    "code": 200,
    "message": "SUCCESS"
  },
  "auth": {
    "token": "eyJpZHYiOlsiTU9CSUxFfDE4NzY3NDMxNzU0Il0sImRldiI6IjEyMzQiLCJvcmciOiJCVUtMIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOiIxNzgwNzc2IiwiaXNzIjoiQ0FQSUxMQVJZIFRFQ0hOT0xPR0lFUyIsImlzYyI6ImZhbHNlIiwib2djIjpbIjEwMDQ1OHxidWtsLmluZC5zb2x1dGlvbiJdLCJleHAiOjE3MTY5NzgzNjEsImlhdCI6MTcxNjk3NzQ2MSwicm9sIjoiVVNFUiJ9.8_qJ7TFcGUQEbsvRHMQ8fosX9Vwn0UUkFLqtH5tOcQ4",
    "key": "eyJpZHYiOlsiTU9CSUxFfDE4NzY3NDMxNzU0Il0sImRldiI6IjEyMzQiLCJvcmciOiJCVUtMIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOiIxNzgwNzc2IiwiaXNzIjoiQ0FQSUxMQVJZIFRFQ0hOT0xPR0lFUyIsIm1mYSI6dHJ1ZSwiaWF0IjoxNzE2OTYyNTU3LCJyb2wiOiJBVVRIIn0.89CmFeLl_zfUBuv2Ea4eQIc3Wy8fJzlcRQad8UcqK-4"
  },
  "user": {
    "role": "USER",
    "userRegisteredForPassword": true
  }
}