title: Appsync graphql authorization with cognito
body: <p>I enabled cognito as the only authorization mechanism (removed api key).</p>
  <p>Following this document, I was able to enable authorization:-
  <a href="https://aws.amazon.com/blogs/mobile/graphql-security-appsync-amplify/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/mobile/graphql-security-appsync-amplify/</a></p>
  <p>But for some reason unknown to me, i am getting the below error on postman:-</p>
  <pre><code>{
      &quot;errors&quot;: [
          {
              &quot;errorType&quot;: &quot;UnauthorizedException&quot;,
              &quot;message&quot;: &quot;Unable to parse JWT token.&quot;
          }
      ]
  }
  </code></pre>
  <p>I used Bearer Token for Authorization which i generated as below :-</p>
  <pre><code>aws cognito-idp admin-initiate-auth --auth-flow ADMIN_USER_PASSWORD_AUTH --client-id 12345678asda9876eia --region something-west-1 --auth-parameters USERNAME=name@something.com,PASSWORD=somepass --user-pool-id something-west-1_ABCdefAmn
  </code></pre>