'Client XYZ is configured for secret but secret was not received

I'm using AWS PHP SDK and I'm getting this error when trying to signup a new user:

Error executing "SignUp" on "https://cognito-idp.eu-central-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://cognito-idp.eu-central-1.amazonaws.com` resulted in a `400 Bad Request` response: {"__type":"NotAuthorizedException","message":"Client XYZ is configured for secret but secret was (truncated...)

I've enabled user signup in the settings. Please help.



Solution 1:[1]

You have to disable the client secret when you create your userPool in cognito

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user1814879