I used amplify add auth
that works fine and then amplify push
.
The React website is running without a problem. But when I try to register or login, I get the error [ERROR] AuthClass - Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID
.
But the aws_user_pools_id
is the same like in the id in the aws console.
Have someone an idea what the problem could be?
thanks ;)
Thats my App.js with no magic...
import React, { Component } from 'react';
import './App.css';
import HomeScreen from './screens/HomeScreen';
import { withAuthenticator } from 'aws-amplify-react';
class App extends Component {
render() {
return (
<div className="App">
<HomeScreen />
</div>
);
}
}
export default withAuthenticator(App);