in src/components/ProfileAdmin.js [12:22]
componentDidMount() {
Auth.currentUserInfo()
.then(response => {
this.setState({
email: response.attributes.email,
cognitoID: response.id,
username: response.username,
loading: false
});
});
}