【发布时间】:2018-09-01 06:40:09
【问题描述】:
在Amplify Quick Start 之后,我使用awsmobile-cli 设置了一个AWS 移动应用程序:
awsmobile init
awsmobile user-signin enable
awsmobile push
在我的 react 应用程序中,我像这样配置了 Amplify(我也尝试了手动配置):
import Amplify from 'aws-amplify';
import aws_exports from '../../aws-exports.js';
Amplify.configure(aws_exports);
import { withAuthenticator } from 'aws-amplify-react';
...
export default withAuthenticator(App);
此代码向我显示 Cognito UI,但在任何操作中,我都会出现以下错误:
没有用户池
如何正确连接 Amplify withConnector 组件与我应用的 userPool?
附:昨天晚上我的应用程序运行完美。今天我只做了一些小改动,无法解释这种行为。
【问题讨论】:
标签: amazon-web-services authentication aws-cognito aws-amplify aws-userpools