Updates user’s two-factor authentication settings. The user must confirm the changes by entering a one-time code.
The workflow of using this call:
You must enable two-factor authentication for the Login project. Contact your Customer Success Manager to enable it.
login_url | string URL to redirect the user to after account confirmation, successful authentication, two-factor authentication configuration, or password reset confirmation. Must be identical to the Callback URL specified in the URL block of Publisher Account. For the scenario of a login error, the value should be identical to the the Error callback URL specified in the URL block of Publisher Account. To find the settings, go to Login > your Login project and select the Callback URLs section in the upper block. Required if there are several Callback URLs. |
mfa_type required | string Type of the second factor. Can be: |
enabled | boolean Default: false Status of two-factor authentication settings. Set |
locale | string Region in the
|
OK
Unauthorized
Unprocessable Entity
Too Many Requests
{- "enabled": true,
- "mfa_type": "email"
}