Unable to verify secret hash for client

The Unable to verify secret hash for client error occurs if you have created your client with Generate client secret selected. To resolve this error, you will need to create a new client without checking the Generate client secret option:

  1. Go to App clients of your user pool from the left navigation bar.
  2. Create a new client with Generate client secret checkbox unchecked as shown in the example image below:
  3. Unable to verify secret hash for client Cognito
  4. Use the new client id.