Ad

Amazon Cognito JS Authflow Doesnt Send Password For Usermigration

Hi Guys im trying to migrate one userpool into another. Therefore i try to go this way: https://docs.aws.amazon.com/en_en/cognito/latest/developerguide/user-pool-lambda-migrate-user.html

when shifting the authflow to USER_PASSWORD_AUTH my password still isnt in the Request. Sample Code:

  const cognitoUser = new AWSCognito.CognitoIdentityServiceProvider.CognitoUser(userData);
  cognitoUser.setAuthenticationFlowType("USER_PASSWORD_AUTH");
  console.log(authenticationDetails);
  cognitoUser.authenticateUser(authenticationDetails, {

Authenticationdetails consists of the username and password

Error is the following:

Missing required parameter PASSWORD

Ad

Answer

The answer was that this is only possible with Cognito SDK > 2.0.2

Ad
source: stackoverflow.com
Ad