in frontend/webapp/src/containers/Login.js [20:29]
async confirmNewPassword(signInResponse, password) {
console.log('This is the first time this user logs in. The user requires changing (or confirming) password');
console.log('Auto-confirm user password');
await Auth.completeNewPassword(
signInResponse,
password,
signInResponse.challengeParam.requiredAttributes
);
console.log("Auth.completeNewPassword succeeded");
}