我正在(仍然)尝试在我的应用程序(ionic 2-3)中实现AWS cognito。在aws给出的各种例子中,他们使用了他们没有描述/解释/告诉我它来自哪里的变量。变量作为'AWS‘或'AWSCognito’
AWS.config.region = this.config.get('region')
或here
AWSCognito.config.region = 'us-east-1';它们是从哪里来的(导入?但是是哪一个呢?)
我该如何定义它们?
发布于 2017-10-23 20:35:39
几周前我也有同样的疑问,搜索一下...我找到了这篇文章,它确切地解释了我们如何使用AWS Cognito with Node.js。
Obs.: This文章使用了AWS的官方模块,如果你也想这样做的话。
您可以通过以下方式设置地域:
var AWS = require('aws-sdk');
var AWS_Region = 'us-east-1';
AWS.config.region = AWS_Region;请参阅有关using AWS Cognito with Node.js的更多信息。
https://stackoverflow.com/questions/46889011
复制相似问题