title: Why aws-cognito-next getServerSideAuth returns null?
body: <p>I'm using the npm module  <code>aws-cognito-next</code> to implement authentication for one of my app. There the function <code>getServerSideAuth(context.req);</code> seems to not working as expected:</p>
  
  <pre><code>export async function getServerSideProps(context) {
      // getServerSideAuth will parse the cookie
      const initialAuth = getServerSideAuth(context.req);
      return { props: { initialAuth } };
  }
  </code></pre>
  
  <p>Then in the same page which is <code>Home</code> (<code>/pages/home.js</code>) I use this returned <code>initialAuth</code> as follows:</p>
  
  <pre><code>const Register = ( {initialAuth} ) =&gt; {
      console.log("initialAuth is: " + util.inspect(initialAuth))
      const auth = useAuth(initialAuth);
      ...
      //other logic
      ...
  }
  </code></pre>
  
  <p>But I get out put as: <code>initialAuth is: null</code>. So why doesn't initialAuth isn't getting returned from serverside? What am I doing wrong here?</p>