I also had this issue and found that instead of going to review, I simply did next when creating the user pool initially, this seemed to cause some slightly different config change. Maybe the post could be updated to reflect the importance of this
Can you detail what the issue was?
Hi, First of all thanks for this amazing guide! Iām having a problem with login and get the following error and any help would be appreciated:
Never mind, silly error. I had not saved my index.js file with the amplify addition.
Glad you figured it out!
Hello dev community. Iām getting an error (400 BadRequest) when trying to login
Iāve already checked my config file and even redid the guide since the beginning and itās still happening. Any help on what my error could be, would be appreciated.
Are you able to login using the CLI, as we talk about in the early part of the guide?
Running into an āAuthentication Failedā alert while attempting to actually auth into the admin@example.com user we create earlier on in the tutorial.
Adding-auth-to-a-react-app branch of demo-notes-app repo:
https://github.com/rd-demos/demo-notes-app/tree/adding-auth-to-a-react-app
[ERROR] 32:14.570 AuthError -
Error: Amplify has not been configured correctly.
The configuration object is missing required auth properties.
This error is typically caused by one of the following scenarios:
1. Did you run `amplify push` after adding auth via `amplify add auth`?
See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information
2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.
^^snippet of error from Chrome console after attempting to send off a login request. This occurs for any username / password combo, and I have 100% confirmed the user exists and is confirmed in Cognito via the AWS UI / Dashboard.
Was curious to see if anyone else had run into this previously / had any thoughts?
EDIT:
Resolved issue forgot to update package.json to include
sst-env
after re-generating the react app dir at some point (frontend dir)
Change needed detailed here:
Hello, did you manage to fix this problem? I see your next comment but I am still not sure how to fix that
hmmm,
In my case I removed the event.preventDefault();
in handleSubmit method and thats why the issue was happening
what do you refer with sst-env? I am having the same error, the variables passing to the frontend are undefined