Complete login using a 2FA challenge

post/api/two-factor/login

Request

  • Base URL: http://localhost:9011
  • URL: http://localhost:9011/api/two-factor/login
  • Auth: API key in header Authorization

Request body

codestring
trustComputerboolean
twoFactorIdstring
userIdstring uuid
applicationIdstring uuid
botDetectionScorenumber double
ipAddressstring
newDeviceboolean
noJWTboolean

Response

Success

changePasswordIdstring
changePasswordReason'Administrative' | 'Breached' | 'Expired' | 'Validation'
configurableMethodsstring[]
emailVerificationIdstring
identityVerificationIdstring
pendingIdPLinkIdstring
refreshTokenstring
refreshTokenIdstring uuid
registrationVerificationIdstring
stateobject
tokenstring
tokenExpirationInstantinteger

The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.

trustTokenstring
twoFactorIdstring
twoFactorTrustIdstring

Example response

{
  "user": {
    "preferredLanguages": [
      "en_US"
    ],
    "birthDate": "2007-12-03",
    "timezone": "America/Denver",
    "registrations": [
      {
        "preferredLanguages": [
          "en_US"
        ],
        "timezone": "America/Denver"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.