Pass ADMIN_USER_PASSWORD_AUTH (formerly known as ADMIN_NO_SRP_AUTH) for the ExplicitAuthFlow parameter in your server-side app's call to CreateUserPoolClient or UpdateUserPoolClient.
Choose Enable sign-in API for server-based authentication (ADMIN_USER_PASSWORD_AUTH) in the App clients tab in Create a user pool. For more information, see Configuring a User Pool App Client.
This confused me for a long time, trying to get this implemented--I figured this will help the next person who comes along.
Hi guys, thanks for writing this library!
I found that the documentation needs updating.
Per the official AWS docs, they've renamed the name of the Auth Flow for server-based authentication: https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html#amazon-cognito-user-pools-server-side-authentication-flow
This confused me for a long time, trying to get this implemented--I figured this will help the next person who comes along.