AWS Cognito ERROR身份验证器 - 无userPool

时间:2017-11-25 01:06:53

标签: react-native aws-cognito

我正在尝试在React Native上使用AWS Cognito设置用户登录。我按照这些说明操作: http://docs.aws.amazon.com/aws-mobile/latest/developerguide/react-native-add-user-sign-in.html

我可以发布有关该应用的分析,并查看包含AWS Pinpoint数据的图表,但Cognito似乎无法正常工作

我尝试过的事情:

redownloading aws-exports.js

awsmobile pull

1 个答案:

答案 0 :(得分:4)

我明白了。在使用Authenticator(App)调用之前,您必须配置Amplify。我只是用进口把它放在顶部。如果教程提到这个就好了......

import Amplify from 'aws-amplify-react-native';
import aws_exports from './aws-exports';
import { withAuthenticator, API } from 'aws-amplify-react-native';
Amplify.configure(aws_exports); 
相关问题