interface ConfirmSignInWithEmailCode {
    codeDeliveryDetails?: AuthCodeDeliveryDetails<AuthUserAttributeKey>;
    signInStep: "CONFIRM_SIGN_IN_WITH_EMAIL_CODE";
}

Properties

signInStep: "CONFIRM_SIGN_IN_WITH_EMAIL_CODE"

Auth step requires user to use EMAIL as multifactor authentication by retrieving a code sent to inbox.

Example

// Code retrieved from email
const emailCode = '112233'
await confirmSignIn({challengeResponse: emailCode})