title: aws-amplify api.get federateInfo with options undefined error
body: <p>I am playing around with aws-amplify and react-native. I am trying to make an api.get call on my home screen but keep running into the error:<br><br>
  Get item: key is federatedInfo with options undefined<br><br>
  I am calling an aws-api-gateway dynamodb. I have been looking at fixes with docs but most point to using HOC withAuthenticator. I don't want to do this since i've custom built signIn/signUP/Confirm screens. Any help or just a point in the right direction would be great. Here is my Home.screen code:<br><br></p>
  
  <pre><code>import React, { Component } from 'react';
  import { View, Text, StyleSheet } from 'react-native';
  import { Button } from "react-native-elements";
  import Amplify, { API, Auth } from 'aws-amplify';
  
  Amplify.configure({
   AUTH: {
    identityPoolId: 'identityPoolId',  
    region: 'us-east-1', 
    userPoolId: 'userPoolId', 
    userPoolWebClientId: 'userPoolWebClientId'  
   },
   API: {
    endpoints: [
     {
      name: "biotest1-prod",
      endpoint: "endpointUrl"
     },
    ]
   }
  });
  
  class Home extends Component {
   constructor(props) {
   super(props);
  
   this.state = {
    loading: true,
     notes: []
   }
  }
  
  async componentDidMount() {
   try { 
    this.session = await Auth.currentSession();
    console.log(this.session);
   } catch(e) { console.log('no session') }
  
      const name = 'endpointUrl';
      let path = '/notes';
      let options = {
          headers: {
              Authorization: Auth.currentSession().idToken.jwtToken 
          }
      }
  
      API.get(name, path, options)
      .then(response =&gt; console.log(response))
      .catch(err =&gt; console.log(err));
  }
  
  userSignOut(){
   Auth.signOut()
    .then(data =&gt; {
     console.log(data)
     const { navigate } = this.props.navigation;
     this.props.navigation.navigate("SignIn");
    })
    .catch(err =&gt; console.log(err));
  }
  
  render() {
   return (
    &lt;View style={styles.container}&gt;
  
     &lt;View style={styles.buttonView}&gt;
      &lt;Button
       buttonStyle={styles.btn}
       title="SIGN OUT"
       onPress={() =&gt; this.userSignOut()}
       /&gt;
      &lt;/View&gt;
  
      &lt;Text style={styles.text}&gt;
       This is the Home Page.
      &lt;/Text&gt;
  
     &lt;/View&gt;
    );
   }
  }
  export default Home;
  </code></pre>