title: JWT signing requirements for ES256
body: <p>I am trying to compile the final part of my singing by generating the signature for my JWT using ES256. </p>
  
  <p>According to <a href="https://jwt.io/introduction/" rel="noreferrer">jwt.io</a>, I can sign it with HMAC SHA256 - here is where I get a bit confused, if my header uses ES256 - does this mean I have to sign it using ES256 algorithm? </p>
  
  <p>It is a requirement that I have to <a href="https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests" rel="noreferrer">ES256</a>.</p>
  
  <pre><code>{
  "alg": "ES256",
  "kid": "DSR74G",
  "typ": "JWT"
  }
  </code></pre>