title: Auth.currentSession says no current user
body: <p>I have basic react app where I am trying to have auth using aws-amplify. 
  I have a user pool set up in cognito. I am able to send the user to the hosted ui. The user is able to log in, but when I try to get the current session, I get a message saying <code>no current user</code>.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>import React, { Component } from 'react';
  import './App.css';
  import Amplify, { Auth } from 'aws-amplify';
  import awsmobile from "./aws-exports";
  
  const auth = {
    AppWebDomain: "funnybusty.auth.us-east-2.amazoncognito.com",
    TokenScopesArray: ["phone", "email", "profile", "openid", "aws.cognito.signin.user.admin"],
    RedirectUriSignIn: "http://localhost:3000",
    RedirectUriSignOut: "http://localhost:3000",
    responseType: "token",
    ClientId: "aaaaa",
    UserPoolId: "aaaa",
  };
  
  Amplify.configure(awsmobile);
  Auth.configure({ oauth: auth });
  
  class App extends Component {
  
    componentDidMount() {
      Auth.currentSession()
        .then(data =&gt; console.log(data))
        .catch(err =&gt; console.log(err));
    }
  
    click = () =&gt; {
      const config = Auth.configure().oauth
      const url = 'https://' + config.AppWebDomain + '/login?redirect_uri=' + config.RedirectUriSignIn + '&amp;response_type=' + config.responseType + '&amp;client_id=' + config.ClientId;
      window.location.assign(url);
    }
  
    render() {
      return (
        &lt;div className="App"&gt;
          &lt;button onClick={this.click}&gt;
            Sign in with AWS
            &lt;/button&gt;
        &lt;/div&gt;
      );
    }
  }
  
  export default App;
  </code></pre>
  
  <p>Where am I going wrong?</p>