AWS Cognito USER_PASSWORD_AUTH "Initiate Auth method not supported."

I am trying to do the following:

  AWSUtil.generateSecretHash('', ClientId).then(SECRET_HASH => {
    return AWSUtil.Cognito.adminInitiateAuth({
      AuthFlow: 'USER_PASSWORD_AUTH',
      UserPoolId: process.env.COGNITO_USER_POOL_ID,
      AuthParameters: {
        USERNAME: '',
        PASSWORD: 'lamepassword123',
  .then(resp => {

It will not return anything but "Initiate Auth method not supported."

According to the docs, this should work. What gives?

1 answer

  • answered 2018-02-13 04:06 Ionut Trestian

    Under the App Clients section, did you enable the box that says "Enable username-password (non-SRP) flow for app-based authentication (USER_PASSWORD_AUTH)" for your user pool?