diff --git a/src/targets/initiateAuth.ts b/src/targets/initiateAuth.ts index 672ffbb2..e6e6fc2a 100644 --- a/src/targets/initiateAuth.ts +++ b/src/targets/initiateAuth.ts @@ -204,6 +204,7 @@ const userPasswordAuthFlow = async ( username: user.Username, userPoolId: userPool.options.Id, }); + user = await userPool.getUserByUsername(ctx, req.AuthParameters.USERNAME); } return verifyPasswordChallenge(