v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Regenerate token

MFA token regeneration.

post/auth/v1/mfa/token/regenerate

Request body

deviceIdstring required

Unique ID of the device used for token regeneration.

brandstring required

Name of the brand or organisation that needs verification.

keystring required

Key generated from the password or OTP validate response.

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.eyJ1aWQiOiIxNzgwNzc2IiwiaXNzIjoiQ0FQSUxMQVJZIFRFQ0hOT0xPR0lFUyIsImlzYyI6ImZhbHNlIiwib2djIjpbIjEwMDQ1OHxidWtsLmluZC5zb2x1dGlvbiJdLCJleHAiOjE3MTcwNjE0NjUsImlhdCI6MTcxNzA2MDU2NSwicm9sIjoiVVNFUiJ9.rmKqmOQyYYtEPs422G0xZ-EUFpak5i0jdrx9W4YVxJQ"
  },
  "user": {
    "role": "USER",
    "userRegisteredForPassword": true
  }
}