Closed aqwert closed 5 years ago
I maybe getting further I followed: https://stackoverflow.com/questions/37438879/unable-to-verify-secret-hash-for-client-in-amazon-cognito-userpools and created an app client without a client app secret.
Get the error Attributes did not conform to the schema: email: the attribute is required
.
Will look at it later
I got it to work. Cognito was setup to record the email address. I just had to add it to the sample.
final userAttributes = [
new AttributeArg(name: 'name', value: name),
new AttributeArg(name: 'email', value: email),
];
I cloned the repo and built the sample.
It runs fine but entering credentials gives the error:
"Unknown client error occurred"
I set the following...
The UserPoolId I got from
General Settings > Pool Id
and ClientId fromGeneral Settings > AppClients > App client id
. Is that right?I believe Cognito is set up correctly but not 100% sure as I am not that familiar with it.
Any suggestions to what I can do?
I also tried logging a user that does not exist and that error is:
Unable to verify secret hash for client 3ugt2ss9vtls0s2p*********