amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
424 stars 232 forks source link

Cognito Auth SDK for JS: incorrect info on git and public documentation #215

Open annienanli opened 4 years ago

annienanli commented 4 years ago

References:

[1]. https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-advanced-security-app.html [2]. https://github.com/aws/amazon-cognito-auth-js/blob/master/sample/SAMPLEREADME.md

Documentation [1] "To use advanced security with JavaScript" step 4 mentioned: replace region for the following domain:

I tested for ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-northeast-2, for all these region, the domain is not accessible.

However, us-east-1 and us-east-2 contents can be accessible and these two are the same. I assume we can use the us-east-1 domain no matter which region your cognito use pool is using.

Please correct documentation [1] and the git link [2] on this info.