Xsolla-logo

사용자의 이중 인증 설정 업데이트

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 Customer Success Manager to enable it.

SecurityBearer
Request
query Parameters
login_url
string

계정 확인, 인증 성공, 이중 인증 구성 또는 비밀번호 재설정 확인 후 사용자를 리디렉션할 URL입니다. 게시자 계정URL 블록에서 지정한 콜백 URL과 동일해야 합니다. 이를 확인하려면 로그인 > 내 로그인 프로젝트로 이동한 후 탐색 페이지의 상단 블록에서 콜백 URL 섹션을 선택합니다. 필수는 콜백 URL이 여러 개인 경우입니다.

Request Body schema: application/json
mfa_type
required
string

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

Enum: "email" "sms"
enabled
boolean
Default: false

이중 인증 설정의 상태입니다. 사용하려면 true값을 설정하고 그렇지 않으면 false값을 설정합니다.

locale
string

지역은 <language code>_<country code> 형식으로 표시합니다.

  • language code: ISO 639-1 형식으로 된 언어 코드
  • country code: ISO 3166-1 alpha-2 형식으로 된 국가 또는 지역 코드
Responses
200

확인

401

인증되지 않음

422

처리할 수 없는 엔터티

429

요청이 너무 많음

Request samples
application/json
{
  • "enabled": true,
  • "mfa_type": "email"
}