@cfxlabsinc/b2b-services
    Preparing search index...
    CognitoChallengeAnswer:
        | { challenge: "PASSWORD"; password: string }
        | { challenge: "SOFTWARE_TOKEN_MFA"; code: string }
        | { challenge: "MFA_SETUP" }
        | { challenge: "WEB_AUTHN"; credential: string }
        | { challenge: "NEW_PASSWORD_REQUIRED"; newPassword: string }
        | { answer: "PASSWORD"; challenge: "SELECT_CHALLENGE"; password: string }
        | { answer: "WEB_AUTHN"; challenge: "SELECT_CHALLENGE" }

    An answer to the challenge a CognitoAuthStep named.

    Type Declaration

    • { challenge: "PASSWORD"; password: string }
    • { challenge: "SOFTWARE_TOKEN_MFA"; code: string }
    • { challenge: "MFA_SETUP" }

      Sent with the session CognitoAuthClient.verifySoftwareToken returned.

    • { challenge: "WEB_AUTHN"; credential: string }

      WebAuthn AuthenticationResponseJSON, as a JSON string.

    • { challenge: "NEW_PASSWORD_REQUIRED"; newPassword: string }
    • { answer: "PASSWORD"; challenge: "SELECT_CHALLENGE"; password: string }
    • { answer: "WEB_AUTHN"; challenge: "SELECT_CHALLENGE" }

      Answers with the WEB_AUTHN challenge and its request options.