PostUsersLoginErrorResponse

PostUsersLoginErrorResponse

사용자 로그인이 실패했거나 2FA가 필요한 경우의 응답 스키마예요. 에러 상세(detail)와 함께, 2FA가 활성화되어 있다면 단기 토큰(login_2fa_token)도 반환해요.

출처: 문서

본문

사용자 로그인이 실패했거나 2FA가 필요한 경우의 응답 스키마예요. 에러 상세(detail)와 함께, 2FA가 활성화되어 있다면 단기 토큰(login_2fa_token)도 반환해요.

실제 JSON 스키마는 다음과 같아요.

{
  "description": "failed user login response or second factor required",
  "examples": [
    {
      "detail": "Incorrect authentication credentials"
    }
  ],
  "properties": {
    "detail": {
      "description": "Description of the error.",
      "example": "Incorrect authentication credentials",
      "type": "string"
    },
    "login_2fa_token": {
      "description": "Short-lived token to be used on `/v2/users/2fa-login` to complete the authentication. This field is present only if 2FA is enabled.",
      "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

더 알아보기