title: How can I validate a JWT passed via cookies?
body: <p>The <code>UseJwtBearerAuthentication</code> middleware in ASP.NET Core makes it easy to validate incoming JSON Web Tokens in <code>Authorization</code> headers. </p>
  
  <p>How do I authenticate a JWT passed via cookies, instead of a header? Something like <code>UseCookieAuthentication</code>, but for a cookie that just contains a JWT.</p>