isotoma / react-cognito

Library for integrating Facebook React and Amazon Cognito
Apache License 2.0
116 stars 48 forks source link

Error Unable to verify secret hash for client #39

Open NetPumi2 opened 6 years ago

NetPumi2 commented 6 years ago

Hi I tried to register user and i will get this error can you describe me what i should to do: POST https://cognito-idp.eu-west-2.amazonaws.com/ 400 (Bad Request) ERROR Unable to verify secret hash for client 2###############t

SOLUTION unchecked Generate client secret image

orther commented 6 years ago

If anyone is curious, the need to create the app client without client secret is due to the fact that Cognito JavaScript SDK doesn't support client secrets.

This is noted in amazon-cognito-identity-js Configuration section of the README:

  • When creating the App, the generate client secret box must be unchecked because the JavaScript SDK doesn't support apps that have a client secret.