Switch language한국어
Back to the list

Your Cognito Login Code Fails Because the App Client Never Allowed That Auth Flow

TL;DR AI

Key summary

2 min read
  1. A Cognito sign-in failure can be caused by app client settings, not by the login code itself.

  2. In this case, USER_PASSWORD_AUTH was not enabled and the client secret required a SECRET_HASH.

  3. Other client-specific settings like MFA, token validity, and Hosted UI OAuth callbacks/scopes can also break auth flows.

  4. Infrawise reads live user pool and app client metadata from AWS so assistants can generate code that matches the deployed setup.

Read the original