Interface ConfirmSignInWithNewPasswordRequired<UserAttributeKey>

interface ConfirmSignInWithNewPasswordRequired<UserAttributeKey> {
    missingAttributes?: UserAttributeKey[];
    signInStep: "CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED";
}

Type Parameters

Properties

missingAttributes?: UserAttributeKey[]
signInStep: "CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED"

Auth step requires user to change their password with any required attributes.

Example

const attributes = {
email: 'email@email'
phone_number: '+11111111111'
};
const newPassword = 'my-new-password';
await confirmSignIn({
challengeResponse: newPassword,
options: {
userAttributes: attributes
}
});