title: AWS Cognito USER_PASSWORD_AUTH "Initiate Auth method not supported."
body: <p>I am trying to do the following:</p>
  
  <pre><code>  AWSUtil.generateSecretHash('test@test.com', ClientId).then(SECRET_HASH =&gt; {
      return AWSUtil.Cognito.adminInitiateAuth({
        AuthFlow: 'USER_PASSWORD_AUTH',
        ClientId,
        UserPoolId: process.env.COGNITO_USER_POOL_ID,
        AuthParameters: {
          USERNAME: 'test@test.com',
          PASSWORD: 'lamepassword123',
          SECRET_HASH
        }
      }).promise();
    })
    .then(resp =&gt; {
      console.log(resp)
    });
  </code></pre>
  
  <p>It will not return anything but <code>"Initiate Auth method not supported."</code></p>
  
  <p>According to the <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html#adminInitiateAuth-property" rel="noreferrer">docs</a>, this should work. What gives?</p>