/
v3.0.11Get access

enableTwoFactorAuthentication

This method enables two-factor authentication (2FA) for the user account.

Request parameters:

NameDescriptionTypeValuesDefault
confirmationCode
If the sms_restrictions array in the partner configuration contains the 24, the user must call this endpoint with confirmationCode gotten via SMS. If no restriction (ID 24) is present, call this endpoint without a confirmationCode to enable 2FA.number--

Call example:

enableTwoFactorAuthentication({
  confirmationCode: '123456'
})

Response examples:

{
  code: 0,
  rid: 33950148,
  data: {
    result: 0,
    result_text: null,
    details: {
      QRCodeOrigin: 'otpauth://totp/1702054407?secret=WZZ3OUUZ7Q77Z4NK74FW3FPCPQT6ZU7O&issuer=VBET'
    }
  }
}

Response parameters:

NameDescriptionTypeValues
QRCodeOrigin
A Time-based One-Time Password configuration URI used to generate a QR code for authenticator apps.string-