post

/users/me/mfa

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:

  1. The user enables or disables two-factor authentication.
  2. The application sends the request to the Xsolla Login server.
  3. The Xsolla Login server sends the one-time confirmation code to the user and returns the URL of the two-factor authentication page.
  4. The application redirects the user to the URL.
  5. The user enters the one-time code.
  6. New two-factor authentication settings are applied.

You must enable two-factor authentication for the Login project. Contact your Account Manager to enable it.

Authorization

apiKey - Authorization

Request Parameters

1 Query Parameter

Request Body

Schema
object

Data of user’s two-factor authentication settings.

enabled
boolean

Status of two-factor authentication settings. Set true value for enabling, and false value otherwise.

2 validations
locale
string

Region in the <language code>_<country code> format, where:

1 validation
mfa_type
string

Type of the second factor. Can be: email, or sms. You must enable the specified type for the Login project. Contact your Account Manager to set it up.

2 validations + required

Responses

OK

Schema
object

URL of the two-factor authentication page.

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
Authorization