Auth flow not enabled for this client

The Auth flow not enabled for this client error occurs if you have not enabled username password auth for admin APIs for authentication. To enable it, do the following:

  1. Go to App clients of your user pool from the left navigation bar.
  2. Check the Enable username password auth for admin APIs for authentication (ALLOW_ADMIN_USER_PASSWORD_AUTH) option under Auth Flows Configuration as shown in the example image below:
  3. Auth flow not enabled for this client AWS Cognito