title: Cookie based Authentication in FastAPI
body: <p>I am looking to integrate Cookie based authentication in my FastAPI App. I want the same to work seamlessly with swagger as well.</p>
  <p>I want to have a route (eg: <code>/login</code>) which sets my browser cookies. All other protected route uses <code>Depends</code> in the decorator to verify the key present in cookie. How do I get this to work with OpenAPI authorize button?</p>
  <p>Important factor here is integration with Swagger/OpenAPI docs auto generated by FastAPI.</p>