截至目前,AWS SDK 至少有 5 个包与 Cognito 相关。
- 通过多种机制定制构建:https ://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/building-sdk-for-browsers.html
- https://github.com/aws/amazon-cognito-identity-js
- https://github.com/aws/amazon-cognito-auth-js
- https://github.com/aws/amazon-cognito-js
其中一些在方法上重叠。许多只是略有不同。文档和链接从过时到完全不正确。
大多数文档在 ES5 中,一些在 ES6 中,一些在 TypeScript 中,一些在 Node.js 中。
开发人员应该如何知道如何从中做出正面或反面?