I have 2 projects which are using the same code like this:
Auth.signUp({ username, password, attributes })
.then(data => console.log(data))
.catch(error => console.log(error))
.finally(() => console.log('done'));
Just like this: https://aws-amplify.github.io/docs/js/authentication#sign-up
Here is the problem show out:
In my old project, everything is ok, just 1 request is sign up send to AWS and got some data from it: https://cognito-idp.ap-southeast-2.amazonaws.com/
In my new project, I have another request go to AWS after the sign up request. There are: https://cognito-idp.ap-southeast-2.amazonaws.com/ And : https://cognito-identity.ap-southeast-2.amazonaws.com/ which is after the first one and its response is : message: "Unauthenticated access is not supported for this identity pool." __type: "NotAuthorizedException"
After that, I got the error in console: Error: No credentials, applicationId or region.
Not sure why is the old project is working fine but with this one, this error show up. Is it because the different in amplify ?
Thanks.